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 authored and aingerson committed Dec 20, 2024
1 parent 53cdc1c commit 71bdde7
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 @@ -399,6 +399,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 @@ -435,13 +452,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 71bdde7

Please sign in to comment.