X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-upload-distribution.sh;h=073db0ebdc0baa10fb20f25ea28d4fc048138e77;hb=59f3f52b63b4da818adfa8f25453e3cc559120b4;hp=39cdbeca55cd1f1a9bf5ebf0810f3086a42cf8ca;hpb=d20352852b5c91440b0416e9600230c3c9e9799d;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-upload-distribution.sh b/jjb/integration/integration-upload-distribution.sh index 39cdbeca5..073db0ebd 100644 --- a/jjb/integration/integration-upload-distribution.sh +++ b/jjb/integration/integration-upload-distribution.sh @@ -2,16 +2,17 @@ set -xeu -o pipefail BUNDLE_VERSION=$(xpath "${BUNDLE_POM}" '/project/version/text()' 2> /dev/null) -BUNDLE="${KARAF_ARTIFACT}-${BUNDLE_VERSION}.zip" -BUNDLE_FILEPATH="/tmp/r/org/opendaylight/integration/${KARAF_ARTIFACT}/${BUNDLE_VERSION}/${BUNDLE}" -ls -l "${BUNDLE_FILEPATH}" +BUNDLEFOLDER="${KARAF_ARTIFACT}-${BUNDLE_VERSION}" +BUNDLE="${BUNDLEFOLDER}.zip" +BUNDLE_PATH="/tmp/r/org/opendaylight/integration/${KARAF_ARTIFACT}/${BUNDLE_VERSION}/${BUNDLE}" +ls -l "${BUNDLE_PATH}" LOG_FILE='integration-upload-distribution.log' echo "Uploading distribution to Nexus..." "$MVN" deploy:deploy-file \ --log-file ${LOG_FILE} \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ - -Dfile="${BUNDLE_FILEPATH}" \ + -Dfile="${BUNDLE_PATH}" \ -DrepositoryId=opendaylight-snapshot \ -Durl="$ODLNEXUSPROXY/content/repositories/opendaylight.snapshot/" \ -DgroupId="org.opendaylight.integration.${GERRIT_PROJECT//\//.}" \ @@ -28,4 +29,8 @@ echo "Bundle uploaded to ${BUNDLE_URL}" # Re-inject the new BUNDLE_URL for downstream jobs to pull from Nexus cat > "${WORKSPACE}/integration-upload-distribution.env" <