Skip to content

Commit

Permalink
contrib/intel/jenkins: Do not run pipeline for unauthorized users
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Dworkin <[email protected]>
  • Loading branch information
zachdworkin committed Dec 17, 2024
1 parent a8237e1 commit c5a7cf3
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions contrib/intel/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,27 @@ pipeline {
}
}
}
stage ('bootstrap-ci') {
steps {
script {
bootstrap_ci()
}
}
}
stage('check-authorization') {
steps {
dir (CI_LOCATION) {
withCredentials([usernamePassword(credentialsId: 'intel-ofi-bot')]) {
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python authorize.py \
--author=${env.CHANGE_AUTHOR} \
--email=${env.CHANGE_AUTHOR_EMAIL} \
--token=${env.intel-ofi-bot_PSW} \
"""
}
}
}
}
stage ('opt-out') {
steps {
script {
Expand Down Expand Up @@ -433,13 +454,6 @@ pipeline {
}
}
}
stage ('bootstrap-ci') {
steps {
script {
bootstrap_ci()
}
}
}
stage ('build-libfabric') {
when { equals expected: true, actual: DO_RUN }
parallel {
Expand Down

0 comments on commit c5a7cf3

Please sign in to comment.