X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-upload-distribution.sh;h=07bba5e61308dda7d9b44aa06dceea089cfbb3dd;hb=b5db4912c02f174aa03691c494caf805f0719892;hp=073db0ebdc0baa10fb20f25ea28d4fc048138e77;hpb=a18648639efb03b109ce8e447feb77b8edf7a251;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-upload-distribution.sh b/jjb/integration/integration-upload-distribution.sh index 073db0ebd..07bba5e61 100644 --- a/jjb/integration/integration-upload-distribution.sh +++ b/jjb/integration/integration-upload-distribution.sh @@ -4,7 +4,18 @@ set -xeu -o pipefail BUNDLE_VERSION=$(xpath "${BUNDLE_POM}" '/project/version/text()' 2> /dev/null) BUNDLEFOLDER="${KARAF_ARTIFACT}-${BUNDLE_VERSION}" BUNDLE="${BUNDLEFOLDER}.zip" -BUNDLE_PATH="/tmp/r/org/opendaylight/integration/${KARAF_ARTIFACT}/${BUNDLE_VERSION}/${BUNDLE}" +BUNDLE_PATH="/tmp/r/org/opendaylight/${KARAF_PROJECT}/${KARAF_ARTIFACT}/${BUNDLE_VERSION}/${BUNDLE}" +if [[ "$KARAF_PROJECT" == "integration" ]]; then + GROUP_ID="org.opendaylight.${KARAF_PROJECT}.${GERRIT_PROJECT//\//.}" +else + GROUP_ID="org.opendaylight.${KARAF_PROJECT}" +fi + +echo "Bundle folder is ${BUNDLEFOLDER}" +echo "Bundle is ${BUNDLE}" +echo "Bundle path is ${BUNDLE_PATH}" +echo "Group ID is ${GROUP_ID}" + ls -l "${BUNDLE_PATH}" LOG_FILE='integration-upload-distribution.log' echo "Uploading distribution to Nexus..." @@ -15,8 +26,8 @@ echo "Uploading distribution to Nexus..." -Dfile="${BUNDLE_PATH}" \ -DrepositoryId=opendaylight-snapshot \ -Durl="$ODLNEXUSPROXY/content/repositories/opendaylight.snapshot/" \ - -DgroupId="org.opendaylight.integration.${GERRIT_PROJECT//\//.}" \ - -DartifactId=${KARAF_ARTIFACT} \ + -DgroupId="${GROUP_ID}" \ + -DartifactId="${KARAF_ARTIFACT}" \ -Dversion="${BUNDLE_VERSION}" \ -Dpackaging=zip \ || true # Sandbox is not allowed to uplad to Nexus.