Skip to content

Commit

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

Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia committed Oct 5, 2023
1 parent ab604a6 commit f932228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def triggerRerunJob () {
def newJobs = [:]
def childParams = []
echo "allocate a node for generating rerun job ..."
node {
node (env.SETUP_LABEL) {
generateJob(newJobs, rerunJobName, rerunJobName)
parallel newJobs

Expand Down Expand Up @@ -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 = ""
Expand Down
2 changes: 2 additions & 0 deletions buildenv/jenkins/openjdk_tests
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit f932228

Please sign in to comment.