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
The following commit(s) were added to refs/heads/master by this push:
new 96046df SLING-7163 - Update Jenkins jobs to reference the git
repositories
96046df is described below
commit 96046df36a346814079941f9e4f1b41bb3bd2ad2
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Nov 9 17:13:14 2017 +0200
SLING-7163 - Update Jenkins jobs to reference the git repositories
Allow skipping job creation for some modules
---
create_jobs.groovy | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
diff --git a/create_jobs.groovy b/create_jobs.groovy
index 179cd08..fcd11db 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -13,27 +13,31 @@ def repoBase = "https://github.com/apache/"
// 24 hours,even if no changes are found in
source control
def modules = []
-// TODO - move blacklist out of this file
-def blacklist = ['sling-tooling-jenkins', 'sling-tooling-scm',
'sling-aggregator', 'sling-whiteboard']
def manifest = new XmlParser().parse(repoUrl)
manifest.project.each { project ->
jobName = [email protected]().replace(".git","")
- if ( !blacklist.contains(jobName) ) {
- def slingMod = []
- try {
- slingMod = new XmlParser().parse(rawUrlPrefix + "/" + jobName +
"/master/.sling-module.xml")
- } catch ( FileNotFoundException e) {
- println "No .sling-module.xml for ${jobName}, using defaults"
- }
- def module = [ location: jobName ]
- if ( slingMod?.jenkins?.jdks ) {
- def jdks = []
- slingMod.jenkins.jdks.jdk.each { jdks.add it.text() }
- module.jdks = jdks
+ def slingMod = []
+ def createJob = true
+ try {
+ slingMod = new XmlParser().parse(rawUrlPrefix + "/" + jobName +
"/master/.sling-module.xml")
+ } catch ( FileNotFoundException e) {
+ println "${jobName}: no .sling-module.xml found, using defaults"
+ }
+ def module = [ location: jobName ]
+ if ( slingMod?.jenkins?.jdks ) {
+ def jdks = []
+ slingMod.jenkins.jdks.jdk.each { jdks.add it.text() }
+ module.jdks = jdks
- println "${jobName}: overriding JDKs list to be ${jdks}"
- }
+ println "${jobName}: overriding JDKs list to be ${jdks}"
+ }
+
+ if ( slingMod?.jenkins?.enabled ) {
+ createJob = Boolean.valueOf(slingMod.jenkins.enabled.text())
+ println "${jobName}: overriding job creation with value ${createJob}"
+ }
+ if ( createJob ) {
modules += module
}
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].