You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2016/09/29 13:50:18 UTC

svn commit: r1762777 - /sling/trunk/tooling/jenkins/create_jobs.groovy

Author: rombert
Date: Thu Sep 29 13:50:18 2016
New Revision: 1762777

URL: http://svn.apache.org/viewvc?rev=1762777&view=rev
Log:
SLING-6061 - Create per-module Jenkins jobs

Document the script a bit, extract some variables for easier access
and add some more TODOs.

Modified:
    sling/trunk/tooling/jenkins/create_jobs.groovy

Modified: sling/trunk/tooling/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/jenkins/create_jobs.groovy?rev=1762777&r1=1762776&r2=1762777&view=diff
==============================================================================
--- sling/trunk/tooling/jenkins/create_jobs.groovy (original)
+++ sling/trunk/tooling/jenkins/create_jobs.groovy Thu Sep 29 13:50:18 2016
@@ -1,4 +1,8 @@
 def svnBase = "https://svn.apache.org/repos/asf/sling/trunk"
+// all modules should be listed here
+// keys:
+//   - location ( required ) : the SVN directory relatory to svnBase
+//   - jdks (optional) : override the default jdks to use for build
 def modules = [
     [
         location: 'bundles/api'
@@ -487,16 +491,22 @@ def modules = [
 
 // TODO - automatic links from modules in bundles and installer (others?)
 //        to the launchpad testing jobs
+// TODO - move job definitions to separate file to separate data from code
+// TODO - re-enable job notifications once stable
 
 // should be sorted from the oldest to the latest version
 // so that artifacts built using the oldest version are
 // deployed for maximum compatibility
 def defaultJdks = ["1.7", "1.8"]
+def defaultMvn = "Maven 3.3.9"
+def defaultSlave = "Ubuntu&&!ubuntu3"
+
 def jdkMapping = [
     "1.7": "JDK 1.7 (latest)",
     "1.8": "JDK 1.8 (latest)"
 ]
 
+
 modules.each {
   
     def svnDir = svnBase +"/" + it.location
@@ -546,17 +556,21 @@ for more details</p>''')
 
             jdk(jdkMapping.get(jdkKey))
 
-            mavenInstallation("Maven 3.3.9")
+            mavenInstallation(defaultMvn)
 
             // we have no use for archived artifacts since they are deployed on
             // repository.apache.org so speed up the build a bit (and probably
             // save on disk space)
             archivingDisabled(true)
 
-            label('Ubuntu&&!ubuntu3')
+            label(defaultSlave)
 
+            // ensure that only one job deploys artifacts
+            // besides being less efficient, it's not sure which
+            // job is triggered first and we may end up with a
+            // mix of Java 7 and Java 8 artifacts for projects which
+            // use these 2 versions
             goals(deploy ? "-U clean deploy" : "-U clean verify");
-
             deploy = false
 
             publishers {