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
This commit is contained in:
Dominik Stadler 2017-11-23 18:54:17 +00:00
parent db15fe7778
commit 625c511503
1 changed files with 5 additions and 3 deletions

View File

@ -250,9 +250,11 @@ poijobs.each { poijob ->
project / publishers << 'hudson.plugins.cigame.GamePublisher' {} project / publishers << 'hudson.plugins.cigame.GamePublisher' {}
} }
} }
archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') { if (!poijob.sonar) {
testDataPublishers { archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') {
publishTestStabilityData() testDataPublishers {
publishTestStabilityData()
}
} }
} }
mailer(email, false, false) mailer(email, false, false)