Skip to content

Commit

Permalink
Collect Launchable results from both Surefire and Failsafe (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Mar 31, 2023
1 parent 6a6a354 commit 23e0938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def mavenEnv(Map params = [:], Closure body) {
body()
}
}
if (junit(testResults: '**/target/*-reports/TEST-*.xml').failCount > 0) {
if (junit(testResults: '**/target/surefire-reports/TEST-*.xml,**/target/failsafe-reports/TEST-*.xml').failCount > 0) {
// TODO JENKINS-27092 throw up UNSTABLE status in this case
error 'Some test failures, not going to continue'
}
Expand Down Expand Up @@ -78,7 +78,7 @@ lines.each {line ->
sh 'mv megawar-$LINE.war megawar.war && bash pct.sh'
}
def launchableSession = readFile("launchable-session-${line}.txt").trim()
launchable("record tests --session ${launchableSession} maven './**/target/surefire-reports'") // TODO add failsafe reports
launchable("record tests --session ${launchableSession} maven './**/target/surefire-reports' './**/target/failsafe-reports'")
}
}
}
Expand Down

0 comments on commit 23e0938

Please sign in to comment.