Skip to content

Commit

Permalink
fix(ci): gate prs from non maintainers
Browse files Browse the repository at this point in the history
Include a jenkins gate to stop builds from forks without a maintainer opting in
  • Loading branch information
esatterwhite committed May 5, 2023
1 parent 2240e2e commit 3a88517
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ pipeline {
}

stages {
stage('Validate PR Source') {
when {
expression { env.CHANGE_FORK }
not {
triggeredBy 'issueCommentCause'
}
}
steps {
error("A maintainer needs to approve this PR for CI by commenting")
}
}

stage('Test Suite') {
matrix {
axes {
Expand Down

0 comments on commit 3a88517

Please sign in to comment.