Skip to content

Commit

Permalink
fix closure
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Nov 8, 2023
1 parent 554454e commit 801c396
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@ pipeline {
skipDefaultCheckout()
}
stages {
stage("Build&Test") {
steps {
script {
createBuildAndTestStageClosure()
}
}
}
}
}

Closure createBuildAndTestStageClosure() {
return {
stage("Build&Test") {
List buildParams = []
buildParams.add(string(name: "DISPLAY_NAME", value: "PR #${CHANGE_ID} - ${image}: ${CHANGE_URL}"))
buildParams.add(string(name: "DISPLAY_NAME", value: "PR #${CHANGE_ID}: ${CHANGE_URL}"))
buildParams.add(string(name: "CHANGE_ID", value: CHANGE_ID))
buildParams.add(string(name: "CHANGE_URL", value: CHANGE_URL))
buildParams.add(string(name: 'SOURCE_AUTHOR', value: getChangeAuthor()))
Expand Down

0 comments on commit 801c396

Please sign in to comment.