mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 13:05:45 +00:00
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
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -4,7 +4,16 @@ pipeline{
|
|||||||
stage ('Master build') {
|
stage ('Master build') {
|
||||||
agent { node { label 'master' } }
|
agent { node { label 'master' } }
|
||||||
stages {
|
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 {
|
steps {
|
||||||
cancelPreviousBuilds()
|
cancelPreviousBuilds()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user