From dcd40982f32bb72364a8746b26dcc3f1d727e53b 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 357ecb11af..8c0fba7a1b 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 2ed5514aef..b269520289 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 f5c23afaf2..65745528a2 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 20c8bc26d1..f28962f69f 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