You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2019/03/03 14:09:58 UTC

svn commit: r1854720 - /poi/trunk/jenkins/create_jobs.groovy

Author: centic
Date: Sun Mar  3 14:09:58 2019
New Revision: 1854720

URL: http://svn.apache.org/viewvc?rev=1854720&view=rev
Log:
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

Modified:
    poi/trunk/jenkins/create_jobs.groovy

Modified: poi/trunk/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/poi/trunk/jenkins/create_jobs.groovy?rev=1854720&r1=1854719&r2=1854720&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Sun Mar  3 14:09:58 2019
@@ -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 '<project default="test"><target name="test"><echo>Java ${ant.java.version}/${java.version}</echo><exec executable="javac"><arg value="-version"/></exec></target></project>' > 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' {}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org