You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my application locally, it works OK.
However, when the build is run with vue-cli-service build in our Jenkins CI/CD process then the commit hash is not picked up.
To help debug, I logged the output from gitDescribeSync() call:
I tried variations like gitDescribeSync(__dirname) and gitDescribeSync(__dirname, { match: '[0-9]*' }) without success.
I assume this is not a bug in this project, more something to do with how vue-cli-service works, but hoping someone can give some help/guidance how to make it work.
The text was updated successfully, but these errors were encountered:
We're running Jenkins in AWS EKS and there is some issue JENKINS-30600 whereby the git checkout is run in the remoting container, not the build container.
When we try to run git describe inside the build container, we then see the following:
+ git describe --match [0-9]*
fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/_my-project_develop'
To add an exception for this directory, call:
git config --global --add safe.directory /home/jenkins/agent/workspace/_my-project_develop
Which seems to be a feature where Git now checks for ownership of the folder.
If I add the exception, then everything works OK, but I'm puzzled why gitDescribeSync() doesn't crash and burn if the underlying command is throwing a fatal error.
I'm following the approach mentioned on https://stackoverflow.com/a/59951577/21503085
When I run my application locally, it works OK.
However, when the build is run with
vue-cli-service build
in our Jenkins CI/CD process then the commit hash is not picked up.To help debug, I logged the output from
gitDescribeSync()
call:I tried variations like
gitDescribeSync(__dirname)
andgitDescribeSync(__dirname, { match: '[0-9]*' })
without success.I assume this is not a bug in this project, more something to do with how vue-cli-service works, but hoping someone can give some help/guidance how to make it work.
The text was updated successfully, but these errors were encountered: