diff options
author | Lusheng Ji <lji@research.att.com> | 2017-10-13 17:39:45 +0000 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2017-10-13 18:51:38 +0000 |
commit | 00444ab458ac70629c38de14e3bb67618ffcee57 (patch) | |
tree | 0e943b1de0be47367e9c8fd825ac7bc648b91869 /mvn-phase-script.sh | |
parent | 16a1fcbc814ec20e59cbe95cb506bca29f104208 (diff) |
Move mvn script lib to scripts/
Issue-Id: DCAEGEN2-128
Change-Id: I8a1198b0b400d03b1fd3a26ef6cbd8a6cda35597
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-x | mvn-phase-script.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index de55ebc..ab823bf 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -38,9 +38,15 @@ if [ -z "$SETTINGS_FILE" ]; then exit 2 fi - +set +e +if ! wget -O ${PROJECT_ROOT}/mvn-phase-lib.sh \ + "$MVN_RAWREPO_BASEURL_DOWNLOAD"/org.onap.dcaegen2.utils/releases/scripts/mvn-phase-lib.sh; then + cp "${PROJECT_ROOT}"/scripts/mvn-phase-lib.sh "${PROJECT_ROOT}/mvn-phase-lib.sh" +fi source "${PROJECT_ROOT}"/mvn-phase-lib.sh +cat "${PROJECT_ROOT}"/mvn-phase-lib.sh + # This is the base for where "deploy" will upload # MVN_NEXUSPROXY is set in the pom.xml @@ -105,6 +111,9 @@ install) deploy) echo "==> deploy phase script" case $MVN_PROJECT_MODULEID in + scripts) + upload_files_of_extension "sh" "$MVN_PROJECT_MODULEID" + ;; *) # uncomment after we figure out how to use pypi. this command expects that the credentials are passed in # settings.xml, and the URL and serverid are passed in from either oparent or dcaegen2's root pom |