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:48 UTC

[sling-tooling-jenkins] 01/02: Reimplement rebuildFrequency

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 <ro...@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" <co...@sling.apache.org>.