Skip to content

Commit cd43a3c

Browse files
committed
jdk11 branch may fail spuriously, so retry
1 parent 685fa8b commit cd43a3c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Jenkinsfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ stage('Tests') {
4242
}
4343
}
4444
branches['jdk11'] = {
45-
node('maven-11') {
46-
timeout(60) {
47-
checkout scm
48-
sh 'mvn -B -ntp -Dset.changelist -Dmaven.test.failure.ignore clean install'
49-
infra.prepareToPublishIncrementals()
50-
junit 'target/surefire-reports/*.xml'
45+
retry(count: 3, conditions: [kubernetesAgent(handleNonKubernetes: true), nonresumable()]) {
46+
node('maven-11') {
47+
timeout(60) {
48+
checkout scm
49+
sh 'mvn -B -ntp -Dset.changelist -Dmaven.test.failure.ignore clean install'
50+
infra.prepareToPublishIncrementals()
51+
junit 'target/surefire-reports/*.xml'
52+
}
5153
}
5254
}
5355
}

0 commit comments

Comments
 (0)