From 69eec68ebbbec7782adf85bd076153d7a2710b36 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Thu, 4 May 2023 08:22:21 -0400 Subject: [PATCH] Set `NOT_BUILT` status on `master` with `BranchEventCause` (#2041) --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9641c303b..2f951d34b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,7 @@ properties([disableConcurrentBuilds(abortPrevious: true), buildDiscarder(logRotator(numToKeepStr: '7'))]) if (BRANCH_NAME == 'master' && currentBuild.buildCauses*._class == ['jenkins.branch.BranchEventCause']) { + currentBuild.result = 'NOT_BUILT' error 'No longer running builds on response to master branch pushes. If you wish to cut a release, use “Re-run checks” from this failing check in https://github.com/jenkinsci/bom/commits/master' }