From 3a88517c7c02b84f991c9f26398316a60d009b91 Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Fri, 5 May 2023 15:51:00 -0500 Subject: [PATCH] fix(ci): gate prs from non maintainers Include a jenkins gate to stop builds from forks without a maintainer opting in --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 63ee38c..880e5c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {