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 2017/11/15 21:42:49 UTC

[sling-tooling-jenkins] 02/02: Reimplement archive patterns

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git

commit 803235f47b14fd89a37440f23aa993f036785861
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Nov 15 23:42:40 2017 +0200

    Reimplement archive patterns
---
 create_jobs.groovy | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/create_jobs.groovy b/create_jobs.groovy
index ed1e4ad..d3c3e98 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -53,6 +53,12 @@ manifest.project.each { project ->
         println "${jobName}: overriding default rebuild frequency with value ${module.rebuildFrequency}"
     }
 
+    if ( slingMod?.jenkins?.archivePatterns ) {
+        module.archivePatterns = []
+        slingMod.jenkins.archivePatterns.archivePattern.each { module.archivePatterns.add it.text() }
+        println "${jobName}: overriding archive patterns to be ${module.archivePatterns}"
+    }
+
     if ( createJob ) {
         modules += module
     }
@@ -158,9 +164,9 @@ for more details</p>''')
                     downstream(downstreamJobs)
                 }
 
-                if (module.archive) {
+                if (module.archivePatterns) {
                     archiveArtifacts() {
-                        module.archive.each { archiveEntry ->
+                        module.archivePatterns.each { archiveEntry ->
                             pattern(archiveEntry)
                         }
                     }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.