From: Dominik Stadler Date: Sun, 3 Mar 2019 14:09:58 +0000 (+0000) Subject: Jenkins DSL: Add XMLBeans-JDK-12, still disabled, though X-Git-Tag: REL_4_1_0~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=178ae9a9fff67866f9a4e8eab50a51f4b15ffbc9;p=poi.git Jenkins DSL: Add XMLBeans-JDK-12, still disabled, though Print out where we get Ant from Use new 'jenkins' target for XMLBeans and fetch compiler warnings and JUnit results git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1854720 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 504363f7cc..253c3631f2 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -86,6 +86,9 @@ def xmlbeansjobs = [ ], [ name: 'POI-XMLBeans-DSL-1.11', jdk: '1.11', trigger: triggerSundays, skipcigame: true, disabled: true // XMLBeans does not yet compile with Java 11 + ], + [ name: 'POI-XMLBeans-DSL-1.12', jdk: '1.12', trigger: triggerSundays, skipcigame: true, + disabled: true // XMLBeans does not yet compile with Java 11 ] ] @@ -169,6 +172,12 @@ echo which javac which javac javac -version +echo Ant-Home: $ANT_HOME +ls -al $ANT_HOME +echo which ant +which ant +ant -version + echo 'Java ${ant.java.version}/${java.version}' > build.javacheck.xml ant -f build.javacheck.xml -v @@ -479,7 +488,10 @@ xmlbeansjobs.each { xjob -> // when using JDK 9/10 for running Ant, we need to provide more modules for the forbidden-api-checks task // on JDK 11 and newer there is no such module any more, so do not add it here env('ANT_OPTS', '--add-modules=java.xml.bind --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED') + } else if (jdkKey == '1.11' || jdkKey == '1.12' || jdkKey == '1.13') { + env('ANT_OPTS', '--add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED') } + // will be needed for forbidden-apis-check: env('ANT_HOME', xjob.windows ? 'f:\\jenkins\\tools\\ant\\latest' : '/usr/share/ant') env('FORREST_HOME', xjob.windows ? 'f:\\jenkins\\tools\\forrest\\latest' : '/home/jenkins/tools/forrest/latest') } wrappers { @@ -515,17 +527,22 @@ xmlbeansjobs.each { xjob -> antInstallation(antRT) } ant { - targets(['test']) - antInstallation(antRT) - } - ant { - targets(['package']) + targets(['jenkins']) antInstallation(antRT) } } publishers { archiveArtifacts('build/**') + warnings(['Java Compiler (javac)', 'JavaDoc Tool'], null) { + resolveRelativePaths() + } + archiveJunit('build/test-results/TEST-*.xml') { + testDataPublishers { + publishTestStabilityData() + } + } + if (!xjob.skipcigame) { configure { project -> project / publishers << 'hudson.plugins.cigame.GamePublisher' {}