sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-tooling-jenkins] 01/02: Reimplement rebuildFrequency
Date Wed, 15 Nov 2017 21:42:48 GMT
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 83829baf861b2bc3a0a79afa5e7d0677f2821be3
Author: Robert Munteanu <rombert@apache.org>
AuthorDate: Wed Nov 15 23:37:52 2017 +0200

    Reimplement rebuildFrequency
---
 create_jobs.groovy | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/create_jobs.groovy b/create_jobs.groovy
index 680942f..ed1e4ad 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -48,6 +48,11 @@ manifest.project.each { project ->
         println "${jobName}: overriding default maven goal with value ${module.mavenGoal}"
     }
 
+    if ( slingMod?.jenkins?.rebuildFrequency ) {
+        module.rebuildFrequency = slingMod.jenkins.rebuildFrequency.text()
+        println "${jobName}: overriding default rebuild frequency with value ${module.rebuildFrequency}"
+    }
+
     if ( createJob ) {
         modules += module
     }
@@ -109,7 +114,7 @@ for more details</p>''')
             triggers {
                 snapshotDependencies(true)
                 scm('H/15 * * * *')
-                def rebuildFrequency = module.rebuildDaily ? '@daily' : '@weekly'
+                def rebuildFrequency = module.rebuildFrequency ? module.rebuildFrequency
: '@weekly'
                 cron(rebuildFrequency)
             }
 

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

Mime
View raw message