changing GERRIT_BRANCH to branch in jenkinsfile
Change-Id: I9baaf610a03b2d83f15062d648b91074750d50ce
diff --git a/Jenkinsfile b/Jenkinsfile
index 7d78e14..9939737 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,7 +14,7 @@
import groovy.json.JsonSlurperClassic
-def filename = 'manifest-${GERRIT_BRANCH}.xml'
+def filename = 'manifest-${branch}.xml'
def manifestUrl = 'https://gerrit.opencord.org/manifest'
deployment_config = null;
pod_config = null;
@@ -27,7 +27,7 @@
}
stage ("Parse deployment configuration file") {
sh returnStdout: true, script: 'rm -rf ${configRepoBaseDir}'
- sh returnStdout: true, script: 'git clone -b ${GERRIT_BRANCH} ${configRepoUrl}'
+ sh returnStdout: true, script: 'git clone -b ${branch} ${configRepoUrl}'
deployment_config = readYaml file: "${configRepoBaseDir}${configRepoFile}"
pod_config = readYaml file: "${configRepoBaseDir}${deployment_config.pod_config.file_name}"
}
@@ -73,7 +73,7 @@
}
stage ("Download CORD POD configuration") {
- sh "cd ../orchestration/profiles; git clone -b ${GERRIT_BRANCH} ${deployment_config.pod_config.repo_url} automation"
+ sh "cd ../orchestration/profiles; git clone -b ${branch} ${deployment_config.pod_config.repo_url} automation"
}
stage ("Generate CORD configuration") {