From 900319c12d8e4280926767efea9f18d4256c0d7c Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Thu, 8 Jun 2017 09:53:51 -0400 Subject: Simplify control repo and branch specification Attempt to get source repo and branch Attempt to get source repo and branch Attempt to get source repo and branch Attempt to get source repo and branch Attempt to get source repo and branch Attempt to get source repo and branch Attempt to get source repo and branch Got source repo and branch Got source repo and branch Getting branch into correct type Test passing repo info to subordinate script Test passing repo info to subordinate script Trying to get values passed... Value passing testing... Value passing testing... Value passing testing... Value access from jobDSL testing Value access from jobDSL testing Test parameter override Test parameter override Test parameter pass via file Test parameter pass via file Test parameter simplification Minor formatting and whitespace cleanup Cleanup --- jenkins/generator_DSL.groovy | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jenkins/generator_DSL.groovy') diff --git a/jenkins/generator_DSL.groovy b/jenkins/generator_DSL.groovy index c14efec..4c9c14c 100644 --- a/jenkins/generator_DSL.groovy +++ b/jenkins/generator_DSL.groovy @@ -21,6 +21,12 @@ folder(suite_name) // build jobs. this.script = "dispatch.groovy" + +this.build_control_repo = readFileFromWorkspace("VAR-build_control_repo") +this.build_control_repo = this.build_control_repo.trim() +this.build_control_branch = readFileFromWorkspace("VAR-build_control_branch") +this.build_control_branch= this.build_control_branch.trim() + pipelineJob("${suite_name}/_${script.tokenize(".")[0]}") { // At trigger-time, allow for setting manifest culling behavior. parameters { -- cgit