From 59ec1e8e3d2c4d4e33aef5bef231573e7e4e7012 Mon Sep 17 00:00:00 2001 From: sandra Date: Thu, 28 Jul 2016 14:11:33 +0300 Subject: [PATCH] move nexus repository to parameter with default value Change-Id: Ie91348b0f808c607bdd9801408d178533bbd893d Signed-off-by: Sandra Biton --- jjb/integration/include-raw-integration-get-bundle-vars.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jjb/integration/include-raw-integration-get-bundle-vars.sh b/jjb/integration/include-raw-integration-get-bundle-vars.sh index c2f592a7c..d01ab252f 100644 --- a/jjb/integration/include-raw-integration-get-bundle-vars.sh +++ b/jjb/integration/include-raw-integration-get-bundle-vars.sh @@ -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` -- 2.36.6