From 1f942080900991f5f85ad420b5d01755922bdeaa Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 7 May 2021 10:55:12 +0200 Subject: [PATCH] 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 --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 027d88865..779014931 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {