Jenkinsfile: Don't wait for a node that is not being used

Since SGX and VFIO tests don't need to be run on pull requests, we
should not have to wait for the corresponding node (bionic-sgx or
bionic-vfio) to become available in order to skip them.

Fixes #2607

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-05-07 10:55:12 +02:00 committed by Rob Bradford
parent 5268bf5a8c
commit 1f94208090

10
Jenkinsfile vendored
View File

@ -105,7 +105,10 @@ pipeline{
}
stage ('Worker build SGX') {
agent { node { label 'bionic-sgx' } }
when { branch 'master' }
when {
beforeAgent true
branch 'master'
}
stages {
stage ('Checkout') {
steps {
@ -138,7 +141,10 @@ pipeline{
}
stage ('Worker build VFIO') {
agent { node { label 'bionic-vfio' } }
when { branch 'master' }
when {
beforeAgent true
branch 'master'
}
stages {
stage ('Checkout') {
steps {