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 <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-12-11 16:49:32 +00:00 committed by Sebastien Boeuf
parent 64c5e3d8cb
commit 36daf9c0b0

11
Jenkinsfile vendored
View File

@ -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()
}