X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-compare-distributions.sh;h=87ad52100927df5cef44ad2c5e9b2f6e0283d0eb;hb=HEAD;hp=040b6cfa3f92715c54e6253fc05e124c05fd4d5f;hpb=6b04c66cafedc5cfc85d46978f13d7c150bc6869;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-compare-distributions.sh b/jjb/integration/integration-compare-distributions.sh index 040b6cfa3..dc694a1eb 100644 --- a/jjb/integration/integration-compare-distributions.sh +++ b/jjb/integration/integration-compare-distributions.sh @@ -19,12 +19,16 @@ elif [[ "$KARAF_ARTIFACT" == "netconf-karaf" ]]; then wget "http://${GERRIT_PATH}/gitweb?p=${KARAF_PROJECT}.git;a=blob_plain;f=karaf/pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml" elif [[ "$KARAF_ARTIFACT" == "controller-test-karaf" ]]; then wget "http://${GERRIT_PATH}/gitweb?p=${KARAF_PROJECT}.git;a=blob_plain;f=karaf/pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml" +elif [[ "$KARAF_ARTIFACT" == "bgpcep-karaf" ]]; then + wget "http://${GERRIT_PATH}/gitweb?p=${KARAF_PROJECT}.git;a=blob_plain;f=distribution-karaf/pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml" else wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml" fi # Extract the BUNDLE_VERSION from the pom.xml -BUNDLE_VERSION=$(xpath pom.xml '/project/version/text()' 2> /dev/null) +# TODO: remove the second xpath command once the old version in CentOS 7 is not used any more +BUNDLE_VERSION=$(xpath -e '/project/version/text()' pom.xml 2>/dev/null || + 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/${KARAF_PROJECT}/${KARAF_ARTIFACT}" @@ -37,7 +41,9 @@ if [ $? -ne 0 ]; then fi less maven-metadata.xml -TIMESTAMP=$(xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null) +# TODO: remove the second xpath command once the old version in CentOS 7 is not used any more +TIMESTAMP=$(xpath -e "//snapshotVersion[extension='zip'][1]/value/text()" maven-metadata.xml 2>/dev/null || + xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null) echo "Nexus timestamp is ${TIMESTAMP}" BUNDLEFOLDER="${KARAF_ARTIFACT}-${BUNDLE_VERSION}" BUNDLE="${KARAF_ARTIFACT}-${TIMESTAMP}.zip" @@ -78,4 +84,3 @@ if [ -f /tmp/distro_new/bin/extract_modules.sh ]; then /tmp/distro_new/bin/check_modules.sh mv /tmp/distro_new/opendaylight-models "$WORKSPACE"/archives fi -