Skip to content

Commit 6e90084

Browse files
committed
jenkinsfile final
1 parent fb878c8 commit 6e90084

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

trip-management/Jenkinsfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ pipeline {
1919
stage('Integration Tests') {
2020
steps {
2121
dir('trip-management') {
22-
sh 'mvn clean verify -P integration-test, !unit-tests'
22+
script {
23+
waitUntil {
24+
try {
25+
sh 'mvn clean verify -P integration-tests,!unit-tests'
26+
return true
27+
} catch (Exception e) {
28+
def inputRetry = input message:'Retry?', parameters: [booleanParam(defaultValue: true, description: '', name: 'retry')]
29+
return !inputRetry
30+
}
31+
}
32+
}
2333
}
2434
}
2535
}
@@ -31,9 +41,4 @@ pipeline {
3141
}
3242
}
3343
}
34-
post {
35-
always {
36-
junit '**/target/*.xml'
37-
}
38-
}
3944
}

0 commit comments

Comments
 (0)