mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-13 07:55:20 +00:00
build: Run worker and master build in parallel
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
bfbca596ea
commit
9bf100c91c
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
|||||||
pipeline{
|
pipeline{
|
||||||
agent none
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage ('Master build') {
|
stage ('Early checks') {
|
||||||
agent { node { label 'master' } }
|
agent { node { label 'master' } }
|
||||||
stages {
|
stages {
|
||||||
stage ('Check for RFC/WIP builds') {
|
stage ('Check for RFC/WIP builds') {
|
||||||
@ -18,6 +18,14 @@ pipeline{
|
|||||||
cancelPreviousBuilds()
|
cancelPreviousBuilds()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Build') {
|
||||||
|
failFast true
|
||||||
|
parallel {
|
||||||
|
stage ('Master build') {
|
||||||
|
agent { node { label 'master' } }
|
||||||
|
stages {
|
||||||
stage ('Checkout') {
|
stage ('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
@ -72,6 +80,8 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def cancelPreviousBuilds() {
|
def cancelPreviousBuilds() {
|
||||||
// Check for other instances of this particular build, cancel any that are older than the current one
|
// Check for other instances of this particular build, cancel any that are older than the current one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user