From 7367d2f1a3635e5b52b602ae87c2ee2a81834a80 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 23 Nov 2017 18:54:17 +0000 Subject: [PATCH] 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 --- jenkins/create_jobs.groovy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 8c0fba7a1..a7073d504 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -250,9 +250,11 @@ poijobs.each { poijob -> project / publishers << 'hudson.plugins.cigame.GamePublisher' {} } } - archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') { - testDataPublishers { - publishTestStabilityData() + if (!poijob.sonar) { + archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') { + testDataPublishers { + publishTestStabilityData() + } } } mailer(email, false, false)