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:
parent
64c5e3d8cb
commit
36daf9c0b0
1 changed files with 10 additions and 1 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue