Skip to content

Commit cf49ed2

Browse files
committed
Fix bad syntax in the sh statement in the pipeline of the Silverpeas for prod docker image release
1 parent e0e3631 commit cf49ed2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/releases/docker-prod/Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,12 @@ pipeline {
191191
}
192192
steps {
193193
script {
194-
prResult = sh """
194+
prResult = sh script: """
195195
curl -X POST \
196196
-u "${GIT_AUTH_USR}:${GIT_TOKEN}" \
197197
-H 'Accept: application/vnd.github.v3+json' \
198-
-d '{"title":"Update with Silverpeas ${params.SILVERPEAS_VERSION}","body":"Update silverpeas Docker library to take into account Silverpeas ${params.SILVERPEAS_VERSION}","head":"Silverpeas:silverpeas-${params.SILVERPEAS_VERSION}","base":"master"}' \
198+
-d '{"title":"New Docker image for Silverpeas ${params.SILVERPEAS_VERSION}",
199+
"body":"Update 'silverpeas' Docker library to take into account Silverpeas ${params.SILVERPEAS_VERSION}","head":"Silverpeas:silverpeas-${params.SILVERPEAS_VERSION}","base":"master"}' \
199200
https://api.github.com/repos/docker-library/official-images/pulls
200201
""", returnStdout: true
201202
}

0 commit comments

Comments
 (0)