From 2f755d8d9b696eb8e1caed007c7cd816a8fd9338 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 21 Nov 2017 16:28:07 +0000 Subject: [PATCH] Try if using a local temporary directory avoids the permission errors in unit tests in the Maven runs: * Collect JUnit results * Set java.io.tmpdir in Maven unit test runs git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815951 13f79535-47bb-0310-9956-ffa450edef68 --- jenkins/create_jobs.groovy | 5 +++++ sonar/main/pom.xml | 2 +- sonar/ooxml/pom.xml | 2 +- sonar/pom.xml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 357ecb11a..8c0fba7a1 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -250,6 +250,11 @@ poijobs.each { poijob -> project / publishers << 'hudson.plugins.cigame.GamePublisher' {} } } + archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') { + testDataPublishers { + publishTestStabilityData() + } + } mailer(email, false, false) } } else if (poijob.javadoc) { diff --git a/sonar/main/pom.xml b/sonar/main/pom.xml index 2ed5514ae..b26952028 100644 --- a/sonar/main/pom.xml +++ b/sonar/main/pom.xml @@ -103,7 +103,7 @@ maven-surefire-plugin ${maven.plugin.surefire.version} - @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:-OmitStackTraceInFastThrow + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp -XX:-OmitStackTraceInFastThrow diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index f5c23afaf..65745528a 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -93,7 +93,7 @@ maven-surefire-plugin ${maven.plugin.surefire.version} - @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:-OmitStackTraceInFastThrow + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp -XX:-OmitStackTraceInFastThrow diff --git a/sonar/pom.xml b/sonar/pom.xml index 20c8bc26d..f28962f69 100644 --- a/sonar/pom.xml +++ b/sonar/pom.xml @@ -106,7 +106,7 @@ org.apache.poi.util.NullLogger - @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp **/All*Tests.java **/TestUnfixedBugs.java