Adding checkout branch to clone commands for CORD-3.0
Change-Id: I3753ca49710278892e74585681c0e3f8f603543f
diff --git a/Jenkinsfile b/Jenkinsfile
index a66e43d..b63ba34 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 /cord/build/config; git clone ${config.pod_config.repo_url}\" corddev"
+ sh "vagrant ssh -c \"cd /cord/build/config; git clone -b ${branch} ${config.pod_config.repo_url}\" corddev"
}
stage ("Publish to headnode") {