diff options
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-x | mvn-phase-script.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index c07c832..5b1bf07 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -1,7 +1,7 @@ #!/bin/bash # ================================================================================ -# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,12 +16,10 @@ # limitations under the License. # ============LICENSE_END========================================================= # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. set -ex - echo "running script: [$0] for module [$1] at stage [$2]" MVN_PROJECT_MODULEID="$1" @@ -38,10 +36,12 @@ if [ -z "$SETTINGS_FILE" ]; then exit 2 fi - +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 - # This is the base for where "deploy" will upload # MVN_NEXUSPROXY is set in the pom.xml REPO=$MVN_NEXUSPROXY/content/sites/raw/$MVN_PROJECT_GROUPID @@ -49,7 +49,6 @@ REPO=$MVN_NEXUSPROXY/content/sites/raw/$MVN_PROJECT_GROUPID TIMESTAMP=$(date +%C%y%m%dT%H%M%S) export BUILD_NUMBER="${TIMESTAMP}" - shift 2 case $MVN_PHASE in @@ -92,6 +91,9 @@ deploy) upload_files_of_extension sh build_and_push_docker ;; + k8s-bootstrap|tca-cdap-container|cm-container|redis-cluster-container) + build_and_push_docker + ;; scripts|cloud_init) # upload all sh file under the root of module upload_files_of_extension_recursively sh |