The gerrit path will be in a parameter. 99/48299/1
authoryair.zinger <yair.zinger@hpe.com>
Sun, 13 Nov 2016 11:23:00 +0000 (13:23 +0200)
committeryair.zinger <yair.zinger@hpe.com>
Sun, 13 Nov 2016 11:23:00 +0000 (13:23 +0200)
This will allow override to the gerrit path for
downstream use.

Change-Id: I39875a2ce86a589c6a7349d8313345f218a2b800
Signed-off-by: yair.zinger <yair.zinger@hpe.com>
jjb/integration/include-raw-integration-get-bundle-vars.sh

index 11c90a9cc280d9c1acf95ba942caf74a0e60aa3b..eb070e5111838f557aa7560500ae895c0f454203 100644 (file)
@@ -4,10 +4,11 @@ echo "#################################################"
 
 NEXUSURL_PREFIX=${ODLNEXUSPROXY:-https://nexus.opendaylight.org}
 ODL_NEXUS_REPO=${ODL_NEXUS_REPO:-content/repositories/opendaylight.snapshot}
+GERRIT_PATH=${GERRIT_PATH:-git.opendaylight.org/gerrit}
 
 if [ ${BUNDLEURL} == 'last' ]; then
     # Obtain current pom.xml of integration/distribution, correct branch.
-    wget "http://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$BRANCH" -O "pom.xml"
+    wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$BRANCH" -O "pom.xml"
     # Extract the BUNDLEVERSION from the pom.xml
     BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
     echo "Bundle version is ${BUNDLEVERSION}"