Skip to content

Commit

Permalink
Pass build env vars to build-sync (#4334)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd authored Jan 20, 2025
1 parent 61f79b5 commit db0eaa4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jobs/build/build-sync/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,20 @@ node() {
withCredentials([
string(credentialsId: 'art-bot-slack-token', variable: 'SLACK_BOT_TOKEN'),
string(credentialsId: 'redis-server-password', variable: 'REDIS_SERVER_PASSWORD'),
string(credentialsId: 'openshift-bot-token', variable: 'GITHUB_TOKEN')
string(credentialsId: 'openshift-bot-token', variable: 'GITHUB_TOKEN'),
string(credentialsId: 'jenkins-service-account', variable: 'JENKINS_SERVICE_ACCOUNT'),
string(credentialsId: 'jenkins-service-account-token', variable: 'JENKINS_SERVICE_ACCOUNT_TOKEN')
]) {
sh(script: cmd.join(' '), returnStdout: true)
withEnv(["BUILD_URL=${BUILD_URL}", "JOB_NAME=${JOB_NAME}"]) {
sh(script: cmd.join(' '), returnStdout: true)
}
}
}

if (params.PUBLISH && !params.DRY_RUN) {
currentBuild.description += " [PUBLISH]"
}
} catch (err) {
currentBuild.displayName += " [FAILURE]"
commonlib.email(
to: "[email protected]",
from: "[email protected]",
Expand Down

0 comments on commit db0eaa4

Please sign in to comment.