mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-31 00:45:22 +00:00
Jenkinsfile: Add a cleanup stage
Cleanup of the Aarch64 machine can't be done as part of the parallel stage as this is often skipped. When the build is aborted because another parallel stage failed, the post actions are simply not performed. That's why we need a dedicated stage, out of the parallel ones, to cleanup the Aarch64 machine. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
9304b92219
commit
bcbc098c66
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -84,12 +84,6 @@ pipeline{
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
sh "sudo chown -R jenkins.jenkins ${WORKSPACE}"
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Worker build (musl)') {
|
||||
agent { node { label 'bionic' } }
|
||||
@ -116,6 +110,13 @@ pipeline{
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Cleanup') {
|
||||
agent { node { label 'bionic-arm64' } }
|
||||
steps {
|
||||
sh "sudo chown -R jenkins.jenkins ${WORKSPACE}"
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
regression {
|
||||
|
Loading…
x
Reference in New Issue
Block a user