Commit bc3b736c authored by Ben Cooksley's avatar Ben Cooksley

Syntax++

parent c6d7f43a
# Read the contents of the gathered-jobs.json file a step created for us previously
// Read the contents of the gathered-jobs.json file a step created for us previously
def jobsToParse = readFileFromWorkspace('gathered-jobs.json')
def knownJobs = new groovy.json.JsonSlurper().parse( jobsToParse )
# Iterate over all of the known jobs and create the necessary platform files
// Iterate over all of the known jobs and create the necessary platform files
knownJobs.each {
# Create our job name
// Create our job name
def jobName = "${it.name} ${it.branchGroup} ${it.platform}"
# Read in the necessary Pipeline template
// Read in the necessary Pipeline template
def pipelineTemplate = readFileFromWorkspace("pipeline-templates/${it.platform}.template")
# Now we can construct our Pipeline script
// Now we can construct our Pipeline script
def pipelineScript = """
|def repositoryUrl = ${it.url}
|def branchToBuild = ${it.branch}
......@@ -19,6 +19,7 @@ knownJobs.each {
|${pipelineTemplate}""".stripMargin()
// Actually create the job now
pipelineJob( jobName ) {
definition {
cps {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment