Skip to content

Commit 73a4ba7

Browse files
committed
docs(jenkins): update example to reflect new docker image with entrypoint
1 parent 0354a9d commit 73a4ba7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tutorials/jenkins_pipeline.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ pipeline {
3737
def useCz(String authorName = 'Jenkins CI Server', String authorEmail = 'your-jenkins@email.com', String image = 'registry.hub.docker.com/commitizen/commitizen:latest', Closure body) {
3838
docker
3939
.image(image)
40-
.inside("-u 0 -v $WORKSPACE:/workspace -w /workspace -e GIT_AUTHOR_NAME='${authorName}' -e GIT_AUTHOR_EMAIL='${authorEmail}'") {
40+
.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 "*"'
4142
sh "git config --global user.email '${authorName}'"
4243
sh "git config --global user.name '${authorEmail}'"
4344
body()

0 commit comments

Comments
 (0)