From 625c511503e6548366df6253d5dd0d6a77563f90 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 8c0fba7a1b..a7073d504a 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) -- 2.39.5