-fi
-
-NEXUSURL_PREFIX=${ODLNEXUSPROXY:-https://nexus.opendaylight.org}
-
-if [ ${BUNDLEURL} == 'last' ]; then
- NEXUSPATH="${NEXUSURL_PREFIX}/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-${DISTRIBUTION}"
- # Extract the BUNDLEVERSION from the pom.xml
- BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
- echo "Bundle version is ${BUNDLEVERSION}"
- # Acquire the timestamp information from maven-metadata.xml
- wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml
- TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null`
- echo "Nexus timestamp is ${TIMESTAMP}"
- BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}"
- BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip"
- BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}"