Merge "move nexus repository to parameter with default value"
authorVratko Polák <vrpolak@cisco.com>
Thu, 18 Aug 2016 13:46:42 +0000 (13:46 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 18 Aug 2016 13:46:42 +0000 (13:46 +0000)
jjb/integration/include-raw-integration-get-bundle-vars.sh

index c2f592a7c5b5b22b2b570c432dc96e4479c24fa5..d01ab252f2d888ed4a0df82278ba7721d46949d9 100644 (file)
@@ -3,6 +3,7 @@ echo "##       Inject Global Variables               ##"
 echo "#################################################"
 
 NEXUSURL_PREFIX=${ODLNEXUSPROXY:-https://nexus.opendaylight.org}
+ODL_NEXUS_REPO=${ODL_NEXUS_REPO:-content/repositories/opendaylight.snapshot}
 
 if [ ${BUNDLEURL} == 'last' ]; then
     # Obtain current pom.xml of integration/distribution, correct branch.
@@ -11,7 +12,7 @@ if [ ${BUNDLEURL} == 'last' ]; then
     BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
     echo "Bundle version is ${BUNDLEVERSION}"
     # Acquire the timestamp information from maven-metadata.xml
-    NEXUSPATH="${NEXUSURL_PREFIX}/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf"
+    NEXUSPATH="${NEXUSURL_PREFIX}/${ODL_NEXUS_REPO}/org/opendaylight/integration/distribution-karaf"
     wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml
     less maven-metadata.xml
     TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null`