X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-get-integration-test-variables.sh;h=38c8d798ae5d5af025909937ea1269f1c5e0e6a5;hb=refs%2Fchanges%2F20%2F38220%2F2;hp=ff7cf11a3f5b7efc4e9691f8187cbd8ed430279e;hpb=a1ee1a1a44975646f8dc08c419eca81f8ffdff56;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh b/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh index ff7cf11a3..38c8d798a 100644 --- a/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh +++ b/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh @@ -9,8 +9,14 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## -NEXUSURL=https://nexus.opendaylight.org/staged-repos/ +NEXUSURL=https://nexus.opendaylight.org/content/repositories/ VERSION=`grep -m1 '' ${WORKSPACE}/integration/distribution/distribution-karaf/pom.xml | awk -F'[<|>]' '/version/ { printf $3 }'` +if [ "x${VERSION}" == "x" ]; then + echo "Lithium or sooner, different path needs to be searched." + VERSION=`grep -m1 '' ${WORKSPACE}/integration/distribution/distributions/karaf/pom.xml | awk -F'[<|>]' '/version/ { printf $3 }'` +fi +echo "VERSION: ${VERSION}" REPOID=`grep "Created staging repository with ID" $WORKSPACE/deploy-staged-repository.log | cut -d '"' -f2` echo BUNDLEURL=${NEXUSURL}/${REPOID}/org/opendaylight/integration/distribution-karaf/${VERSION}/distribution-karaf-${VERSION}.zip > $WORKSPACE/variables.prop +echo "BUNDLEURL: ${BUNDLEURL}"