if [ ${BUNDLE_URL} == 'last' ]; then
# Obtain current pom.xml of integration/distribution, correct branch.
wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
if [ ${BUNDLE_URL} == 'last' ]; then
# Obtain current pom.xml of integration/distribution, correct branch.
wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
- # Extract the BUNDLEVERSION from the pom.xml
- BUNDLEVERSION="$(xpath pom.xml '/project/version/text()' 2> /dev/null)"
- echo "Bundle version is ${BUNDLEVERSION}"
+ # Extract the BUNDLE_VERSION from the pom.xml
+ BUNDLE_VERSION="$(xpath pom.xml '/project/version/text()' 2> /dev/null)"
+ echo "Bundle version is ${BUNDLE_VERSION}"
# Acquire the timestamp information from maven-metadata.xml
NEXUSPATH="${NEXUSURL_PREFIX}/${ODL_NEXUS_REPO}/org/opendaylight/integration/${KARAF_ARTIFACT}"
# Acquire the timestamp information from maven-metadata.xml
NEXUSPATH="${NEXUSURL_PREFIX}/${ODL_NEXUS_REPO}/org/opendaylight/integration/${KARAF_ARTIFACT}"
less "maven-metadata.xml"
TIMESTAMP="$(xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null)"
echo "Nexus timestamp is ${TIMESTAMP}"
less "maven-metadata.xml"
TIMESTAMP="$(xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null)"
echo "Nexus timestamp is ${TIMESTAMP}"
else
ACTUAL_BUNDLE_URL="${BUNDLE_URL}"
BUNDLE="${BUNDLE_URL##*/}"
ARTIFACT="$(basename "$(dirname "$(dirname "${BUNDLE_URL}")")")"
else
ACTUAL_BUNDLE_URL="${BUNDLE_URL}"
BUNDLE="${BUNDLE_URL##*/}"
ARTIFACT="$(basename "$(dirname "$(dirname "${BUNDLE_URL}")")")"
- BUNDLEVERSION="$(basename "$(dirname "${BUNDLE_URL}")")"
- BUNDLEFOLDER="${ARTIFACT}-${BUNDLEVERSION}"
+ BUNDLE_VERSION="$(basename "$(dirname "${BUNDLE_URL}")")"
+ BUNDLEFOLDER="${ARTIFACT}-${BUNDLE_VERSION}"