diff options
author | Lusheng Ji <lji@research.att.com> | 2017-10-10 05:59:07 +0000 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2017-10-10 05:59:13 +0000 |
commit | a55c9aa2a7441f39abca4e826924e5975b7e1786 (patch) | |
tree | d389dd23cac26e4059ae43e3a791b29a9dc0dfba | |
parent | dc640203f343fe036a2b6a24388ed71e9c5eb1e7 (diff) |
Fix push path
Issue-Id: DCAEGEN2-128
Change-Id: I51d0cbd6a3d844ac773167e5eacf0e2966bf437e
Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-x | mvn-phase-lib.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh index 95c8816..3a41708 100755 --- a/mvn-phase-lib.sh +++ b/mvn-phase-lib.sh @@ -251,11 +251,18 @@ upload_raw_file() OUTPUT_FILE_TYPE='application/octet-stream' fi - + # for multi module projects, the raw repo path must match with project name, not project + module + # FQDN is project + module + # GROUPID is project name + if [ "$MVN_PROJECT_ARTIFACTID" == "$MVN_PROJECT_MODULEID" ]; then + PROJECT_NAME=${MVN_PROJECT_GROUPID} + else + PROJECT_NAME=${FQDN} + fi if [ "$MVN_DEPLOYMENT_TYPE" == 'SNAPSHOT' ]; then - SEND_TO="${REPO}/${FQDN}/snapshots" + SEND_TO="${REPO}/${PROJECT_NAME}/snapshots" elif [ "$MVN_DEPLOYMENT_TYPE" == 'STAGING' ]; then - SEND_TO="${REPO}/${FQDN}/releases" + SEND_TO="${REPO}/${PROJECT_NAME}/releases" else echo "Unreconfnized deployment type, quit" exit |