Skip to content

Commit

Permalink
Update logic for setup work node
Browse files Browse the repository at this point in the history
resolves: adoptium#4798

Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia committed Oct 4, 2023
1 parent ab604a6 commit 964bdb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,9 @@ def triggerRerunJob () {
def rerunJobName = "${JOB_NAME}_rerun"
def newJobs = [:]
def childParams = []
def SETUP_LABEL = params.SETUP_LABEL ?: "ci.role.test"
echo "allocate a node for generating rerun job ..."
node {
node (SETUP_LABEL) {
generateJob(newJobs, rerunJobName, rerunJobName)
parallel newJobs

Expand Down Expand Up @@ -1265,7 +1266,8 @@ 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 {
def SETUP_LABEL = params.SETUP_LABEL ?: "ci.role.test"
node (SETUP_LABEL) {
forceCleanWS()
try {
def buildPaths = ""
Expand Down

0 comments on commit 964bdb0

Please sign in to comment.