diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile index 865484270..68e4d6ed0 100644 --- a/.ci/jenkins/Jenkinsfile +++ b/.ci/jenkins/Jenkinsfile @@ -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()))