Skip to content

Commit 97803b5

Browse files
committed
fix: gate buils from non maintainers
adds a gate to the build that prevents builds from auto triggering from people outside the org
1 parent 1d43ec6 commit 97803b5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ pipeline {
2222
}
2323

2424
stages {
25+
stage('Validate PR Source') {
26+
when {
27+
expression { env.CHANGE_FORK }
28+
not {
29+
triggeredBy 'issueCommentCause'
30+
}
31+
}
32+
steps {
33+
error("A maintainer needs to approve this PR for CI by commenting")
34+
}
35+
}
2536
stage('Test') {
2637

2738
steps {

0 commit comments

Comments
 (0)