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 3ae490f SLING-7163 - Update Jenkins jobs to reference the git
repositories
3ae490f is described below
commit 3ae490fb6612f4ab5b6d62b61389fd68ade6945c
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Nov 9 14:48:00 2017 +0200
SLING-7163 - Update Jenkins jobs to reference the git repositories
Re-add experimental support for defining multiple JDKs per job.
---
create_jobs.groovy | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/create_jobs.groovy b/create_jobs.groovy
index 31e447b..4b28aab 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -1,4 +1,5 @@
-def repoUrl =
"https://raw.githubusercontent.com/apache/sling-aggregator/master/default.xml"
+def rawUrlPrefix = "https://raw.githubusercontent.com/apache"
+def repoUrl = rawUrlPrefix + "/sling-aggregator/master/default.xml"
def repoBase = "https://github.com/apache/"
// Repositories are read from the repo definition file. Not all keys are
currently
// read from the repo xml file.
@@ -19,7 +20,21 @@ def manifest = new XmlParser().parse(repoUrl)
manifest.project.each { project ->
jobName = [email protected]().replace(".git","")
if ( !blacklist.contains(jobName) ) {
- modules += [ location: [email protected]().replace(".git", "")]
+ 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
+
+ println "${jobName}: overriding JDKs list to be ${jdks}"
+ }
+ modules += module
}
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].