Skip to content

Commit 900fc4a

Browse files
author
R. Tyler Croy
committed
Attempt to archive artifacts and test results even if something fails
1 parent 7304b5c commit 900fc4a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Jenkinsfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ node('docker') {
1616
parallelSteps["${javaVersion}-${plugin}"] = {
1717
node('docker') {
1818
checkout scm
19-
docker.image("openjdk:${javaVersion}").inside {
20-
timeout(45) {
21-
sh "./gradlew -Si ${plugin}:check ${plugin}:gradleTest ${plugin}:assemble"
19+
try {
20+
docker.image("openjdk:${javaVersion}").inside {
21+
timeout(45) {
22+
sh "./gradlew -Si ${plugin}:check ${plugin}:gradleTest ${plugin}:assemble"
23+
}
2224
}
2325
}
24-
junit '**/build/test-results/**/*.xml'
25-
archiveArtifacts artifacts: '**/build/libs/*.jar,build/*.zip', fingerprint: true
26+
finally {
27+
junit '**/build/test-results/**/*.xml'
28+
archiveArtifacts artifacts: '**/build/libs/*.jar,build/*.zip', fingerprint: true
29+
}
2630
}
2731
}
2832
}

0 commit comments

Comments
 (0)