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/11/16 14:25:04 UTC

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

Author: rombert
Date: Wed Nov 16 14:25:04 2016
New Revision: 1769988

URL: http://svn.apache.org/viewvc?rev=1769988&view=rev
Log:
SLING-6290 - Add a 'rebuildNightly' property for Jenkins jobs

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=1769988&r1=1769987&r2=1769988&view=diff
==============================================================================
--- sling/trunk/tooling/jenkins/create_jobs.groovy (original)
+++ sling/trunk/tooling/jenkins/create_jobs.groovy Wed Nov 16 14:25:04 2016
@@ -6,6 +6,8 @@ def svnBase = "https://svn.apache.org/re
 //   - downstream (optional): list of downstream projects
 //   - archive (optional): list of archive patterns
 //   - extraGoalsParams (optional): additional string for the Maven goals to execute
+//   - rebuildNightly (optional): boolean, when enabled configures the build to run once every
+//                                24 hours,even if no changes are found in source control
 def modules = [
     [
         location: 'bundles/api'
@@ -250,7 +252,8 @@ def modules = [
         location: 'bundles/jcr/jcr-wrapper'
     ],
     [
-        location: 'bundles/jcr/oak-server'
+        location: 'bundles/jcr/oak-server',
+        rebuildNightly: true
     ],
     [
         location: 'bundles/jcr/registration'
@@ -883,6 +886,9 @@ for more details</p>''')
             triggers {
                 snapshotDependencies(true)
                 scm('H/15 * * * *')
+                if ( module.rebuildNightly ) {
+                    cron('@daily')
+                }
             }
 
             // timeout if the job takes 4 times longer than the average