diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index 969efc11cf..28b693c58d 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -1223,8 +1223,8 @@ def triggerRerunJob () { def rerunJobName = "${JOB_NAME}_rerun" def newJobs = [:] def childParams = [] - echo "allocate a node for generating rerun job ..." - node { + echo "triggerRerunJob allocate a node for generating rerun job ..." + node (env.SETUP_LABEL) { generateJob(newJobs, rerunJobName, rerunJobName) parallel newJobs @@ -1265,7 +1265,7 @@ def run_parallel_tests() { if (params.PARALLEL && params.PARALLEL != "None" && (NUM_MACHINES > 1 || params.TEST_TIME)) { stage ("Parallel Tests") { def childJobs = parallel parallel_tests - node { + node (env.SETUP_LABEL) { forceCleanWS() try { def buildPaths = "" diff --git a/buildenv/jenkins/openjdk_tests b/buildenv/jenkins/openjdk_tests index 0a404a9d28..32d7267207 100644 --- a/buildenv/jenkins/openjdk_tests +++ b/buildenv/jenkins/openjdk_tests @@ -383,6 +383,8 @@ timestamps{ } } if (currentBuild.result != 'FAILURE') { + env.SETUP_LABEL = params.SETUP_LABEL ?: "ci.role.test" + echo "SETUP_LABEL: ${env.SETUP_LABEL}" jenkinsfile.run_parallel_tests() jenkinsfile.triggerRerunJob() }