Adding checkout branch to clone commands for CORD master
Change-Id: Ice4d2dab7563f421d9849689a37ce6fcc1cfde0e
diff --git a/Jenkinsfile b/Jenkinsfile
index 012be35..b0cb132 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,7 +12,7 @@
stage ("Parse deployment configuartion file") {
sh returnStdout: true, script: 'rm -rf ${configRepoBaseDir}'
- sh returnStdout: true, script: 'git clone ${configRepoUrl}'
+ sh returnStdout: true, script: 'git clone -b ${branch} ${configRepoUrl}'
config = readYaml file: "${configRepoBaseDir}${configRepoFile}"
}
}
@@ -71,7 +71,7 @@
}
stage ("Downloading CORD POD configuration") {
- sh "vagrant ssh -c \"cd /opt/cord/build/config; git clone ${config.pod_config.repo_url}\" corddev"
+ sh "vagrant ssh -c \"cd /opt/cord/build/config; git clone -b ${branch} ${config.pod_config.repo_url}\" corddev"
}
stage ("Publish to headnode") {