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/30 13:24:06 UTC

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

Author: rombert
Date: Fri Sep 30 13:24:06 2016
New Revision: 1762909

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

Allow definition of archival patterns

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=1762909&r1=1762908&r2=1762909&view=diff
==============================================================================
--- sling/trunk/tooling/jenkins/create_jobs.groovy (original)
+++ sling/trunk/tooling/jenkins/create_jobs.groovy Fri Sep 30 13:24:06 2016
@@ -5,6 +5,7 @@ def svnBase = "https://svn.apache.org/re
 //   - location ( required ) : the SVN directory relatory to svnBase
 //   - jdks (optional) : override the default jdks to use for build
 //   - downstream (optional): list of downstream projects
+//   - archive (optional): list of archive patterns
 def modules = [
     [
         location: 'bundles/api'
@@ -393,7 +394,8 @@ def modules = [
     [
         location: 'launchpad/builder',
         jdks: ["1.8"],
-        downstream: ["launchpad/testing", "launchpad/testing-war"]
+        downstream: ["launchpad/testing", "launchpad/testing-war"],
+        archive: ["*logs/error.log"]
     ],
     [
         location: 'launchpad/content',
@@ -425,11 +427,13 @@ def modules = [
     ],
     [
         location: 'launchpad/testing-war',
-        jdks: ["1.8"]
+        jdks: ["1.8"],
+        archive: ["**/logs/error.log"]
     ],
     [
         location: 'launchpad/testing',
-        jdks: ["1.8"]
+        jdks: ["1.8"],
+        archive: ["**/logs/error.log"]
     ],
     [
         location: "parent",
@@ -618,6 +622,14 @@ for more details</p>''')
                     downstream(downstreamJobs)
                 }
 
+                if (module.archive) {
+                    archiveArtifacts() {
+                        module.archive.each { archiveEntry ->
+                            pattern(archiveEntry)
+                        }
+                    }
+                }
+
                 // TODO - can we remove the glob and rely on the defaults?
                 archiveJunit('**/target/surefire-reports/*.xml,**/target/failsafe-reports/*.xml') {
                     allowEmptyResults()