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
Lookup a all teams and users in the ofiwg github team.
If the submitter is not in the list of users then deny them

Signed-off-by: Zach Dworkin <zachary.dworkin@intel.com>
  • Loading branch information
zachdworkin committed Dec 19, 2024
1 parent bfbbaeb commit 3eff35c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions contrib/intel/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,23 @@ pipeline {
}
}
}
stage ('bootstrap-ci') {
steps {
script {
bootstrap_ci()
}
}
}
stage('check-authorization') {
steps {
script {
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python ${CI_LOCATION}/authorize.py \
--author=${env.CHANGE_AUTHOR}
"""
}
}
}
stage ('opt-out') {
steps {
script {
Expand Down Expand Up @@ -433,13 +450,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 3eff35c

Please sign in to comment.