Skip to content

Commit 19d7fbf

Browse files
authored
Tests will now be archived regardless of fail/pass
1 parent cc0b925 commit 19d7fbf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Jenkinsfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ try {
2424
}
2525

2626
stage ('Test') {
27-
sh 'cp ~/xivstatsFiles/config.xml .'
28-
sh 'mvn test'
29-
sh 'rm config.xml'
30-
sh 'pip install --user codecov'
31-
sh 'codecov --token=96498141-ca0d-4144-af53-c04b593115ef'
32-
step([$class: 'JUnitResultArchiver', testResults: 'target/surefire-reports/*.xml'])
27+
try {
28+
sh 'cp ~/xivstatsFiles/config.xml .'
29+
sh 'mvn test'
30+
}
31+
finally {
32+
sh 'rm config.xml'
33+
sh 'pip install --user codecov'
34+
sh 'codecov --token=96498141-ca0d-4144-af53-c04b593115ef'
35+
step([$class: 'JUnitResultArchiver', testResults: 'target/surefire-reports/*.xml'])
36+
}
3337
}
3438

3539
stage('SonarQube analysis') {

0 commit comments

Comments
 (0)