We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0354a9d commit 73a4ba7Copy full SHA for 73a4ba7
docs/tutorials/jenkins_pipeline.md
@@ -37,7 +37,8 @@ pipeline {
37
def useCz(String authorName = 'Jenkins CI Server', String authorEmail = '[email protected]', String image = 'registry.hub.docker.com/commitizen/commitizen:latest', Closure body) {
38
docker
39
.image(image)
40
- .inside("-u 0 -v $WORKSPACE:/workspace -w /workspace -e GIT_AUTHOR_NAME='${authorName}' -e GIT_AUTHOR_EMAIL='${authorEmail}'") {
+ .inside("-u 0 -v $WORKSPACE:/workspace -w /workspace -e GIT_AUTHOR_NAME='${authorName}' -e GIT_AUTHOR_EMAIL='${authorEmail}' -entrypoint='/bin/sh'") {
41
+ sh 'git config --global --add safe.directory "*"'
42
sh "git config --global user.email '${authorName}'"
43
sh "git config --global user.name '${authorEmail}'"
44
body()
0 commit comments