Skip to content

Commit c7dedc4

Browse files
zachdworkinaingerson
authored andcommitted
contrib/intel/jenkins: Do not run pipeline for unauthorized users
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 <[email protected]>
1 parent aae4350 commit c7dedc4

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

contrib/intel/jenkins/Jenkinsfile

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,23 @@ pipeline {
399399
}
400400
}
401401
}
402+
stage ('bootstrap-ci') {
403+
steps {
404+
script {
405+
bootstrap_ci()
406+
}
407+
}
408+
}
409+
stage('check-authorization') {
410+
steps {
411+
script {
412+
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
413+
python ${CI_LOCATION}/authorize.py \
414+
--author=${env.CHANGE_AUTHOR}
415+
"""
416+
}
417+
}
418+
}
402419
stage ('opt-out') {
403420
steps {
404421
script {
@@ -435,13 +452,6 @@ pipeline {
435452
}
436453
}
437454
}
438-
stage ('bootstrap-ci') {
439-
steps {
440-
script {
441-
bootstrap_ci()
442-
}
443-
}
444-
}
445455
stage ('build-libfabric') {
446456
when { equals expected: true, actual: DO_RUN }
447457
parallel {

0 commit comments

Comments
 (0)