From 36daf9c0b06dd550b263b37c52db08aceebca99f Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 11 Dec 2019 16:49:32 +0000 Subject: [PATCH] ci: Skip testing RFC or WIP PRs To alleviate load on the CI only test PRs that are not marked as RFC or WIP. Signed-off-by: Rob Bradford --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 46ac50caf..daabcf634 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,16 @@ pipeline{ stage ('Master build') { agent { node { label 'master' } } stages { - stage('Cancel older builds') { + stage ('Check for RFC/WIP builds') { + when { + changeRequest comparator: 'REGEXP', title: '.*(rfc|RFC|wip|WIP).*' + beforeAgent true + } + steps { + error("Failing as this is marked as a WIP or RFC PR.") + } + } + stage ('Cancel older builds') { steps { cancelPreviousBuilds() }