Skip to content

Commit 7367d2f

Browse files
committed
Don't try to collect junit results for Maven when we only run Sonar-tasks and thus skip unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1816186 13f79535-47bb-0310-9956-ffa450edef68
1 parent d77e980 commit 7367d2f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jenkins/create_jobs.groovy

+5-3
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,11 @@ poijobs.each { poijob ->
250250
project / publishers << 'hudson.plugins.cigame.GamePublisher' {}
251251
}
252252
}
253-
archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') {
254-
testDataPublishers {
255-
publishTestStabilityData()
253+
if (!poijob.sonar) {
254+
archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') {
255+
testDataPublishers {
256+
publishTestStabilityData()
257+
}
256258
}
257259
}
258260
mailer(email, false, false)

0 commit comments

Comments
 (0)