aboutsummaryrefslogtreecommitdiff
path: root/jenkins/dispatch.groovy
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2017-08-29 14:49:50 -0400
committerGitHub <noreply@github.com>2017-08-29 14:49:50 -0400
commit53bc06ae965b9908443027c70b47919a8e40f873 (patch)
treea1f92518869dd0801c9838374d1e0d31dfe9971f /jenkins/dispatch.groovy
parent27ae0359769f81288d19acdef316e6a84925b60f (diff)
parent4a27427963ad9de3cbbbd9e8f56d2e0751a53daf (diff)
downloadbuild_control-53bc06ae965b9908443027c70b47919a8e40f873.tar.gz
Merge pull request #1 from rendinam/tag_test
Tag test
Diffstat (limited to 'jenkins/dispatch.groovy')
-rw-r--r--jenkins/dispatch.groovy6
1 files changed, 6 insertions, 0 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy
index fcf67d3..fcad873 100644
--- a/jenkins/dispatch.groovy
+++ b/jenkins/dispatch.groovy
@@ -64,6 +64,12 @@ node(LABEL) {
// Get the manifest and build control files
git branch: BUILD_CONTROL_BRANCH, url: BUILD_CONTROL_REPO
+ // If a tag was specified in the job-suite-generator configuration,
+ // explicitly check out that tag after cloning the (master) branch,
+ // since the 'git' pipeline step does not yet support accessing tags.
+ if (BUILD_CONTROL_TAG != "") {
+ sh(script: "git checkout tags/${BUILD_CONTROL_TAG}")
+ }
this.manifest = readYaml file: "manifests/${MANIFEST_FILE}"
if (this.manifest.channel_URL[-1..-1] == "/") {