From: Dominik Stadler Date: Tue, 21 Nov 2017 16:28:07 +0000 (+0000) Subject: Try if using a local temporary directory avoids the permission errors in unit tests... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f755d8d9b696eb8e1caed007c7cd816a8fd9338;p=poi.git 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 --- 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