X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-get-integration-test-variables.sh;h=b50f56b20de4f8051dd25d5f00bc0b8cb933353d;hb=fba96864189becc0c55ff1ee61572e012f507f6f;hp=67564700cf77eeec6a7fd50a0261afd994852da7;hpb=85ec5cecdd1e7290115692c297ae6b364b1a3dcf;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 67564700c..b50f56b20 100644 --- a/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh +++ b/jjb/autorelease/include-raw-autorelease-get-integration-test-variables.sh @@ -9,9 +9,24 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## -NEXUSURL=https://nexus.opendaylight.org/content/repositories/ +# ODLNEXUSPROXY is used to define the location of the Nexus server used by the CI system. +# by default it should be set to https://nexus.opendaylight.org +# in cases where an internal ci system is using multiple NEXUS systems one for artifacts and another for staging, +# we can override using ODLNEXUS_STAGING_URL to route the staging build to the 2nd server. +# (most CI setups where a single Nexus server is used, ODLNEXUS_STAGING_URL should be left unset) +NEXUS_STAGING_URL=${ODLNEXUS_STAGING_URL:-$ODLNEXUSPROXY} + +NEXUSURL=${NEXUS_STAGING_URL}/content/repositories/ VERSION=`grep -m2 '' ${WORKSPACE}/integration/distribution/distribution-karaf/pom.xml | tail -n1 | awk -F'[<|>]' '/version/ { printf $3 }'` 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 +STAGING_REPO_ID=`grep "Created staging repository with ID" $WORKSPACE/deploy-staged-repository.log | cut -d '"' -f2` +BUNDLEURL=${NEXUSURL}/${STAGING_REPO_ID}/org/opendaylight/integration/distribution-karaf/${VERSION}/distribution-karaf-${VERSION}.zip +echo STAGING_REPO_ID=$STAGING_REPO_ID >> $WORKSPACE/variables.prop +echo BUNDLEURL=$BUNDLEURL >> $WORKSPACE/variables.prop echo "BUNDLEURL: ${BUNDLEURL}" + +# Copy variables.prop to variables.jenkins-trigger so that the end of build +# trigger can pick up the file as input for triggering downstream jobs. +# This allows variables.prop to get archive to logs.opendaylight.org while not +# breaking the downstream trigger due to missing file from archiving. +cp variables.prop variables.jenkins-trigger