Skip to content

Commit

Permalink
[JENKINS-49707] Retry node block after infrastructure outages (#813)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
  • Loading branch information
jglick and timja committed Jul 7, 2022
1 parent ef89e5c commit 226d338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ for (int i = 0; i < splits.size(); i++) {
def name = "java-${javaVersion}-jenkins-${jenkinsUnderTest}-split${index}"
branches[name] = {
stage(name) {
retry(count: 2, conditions: [agent(), nonresumable()]) {
node('docker-highmem') {
checkout scm
def image = docker.build('jenkins/ath', '--build-arg uid="$(id -u)" --build-arg gid="$(id -g)" ./src/main/resources/ath-container/')
Expand All @@ -58,6 +59,7 @@ for (int i = 0; i < splits.size(); i++) {
}
}
}
}
}
}
}
Expand Down

0 comments on commit 226d338

Please sign in to comment.