diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deploy.sh | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh deleted file mode 100755 index 67da5fc1..00000000 --- a/scripts/deploy.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash - -set -x - -########## Define parameters ########## -source ${WORKSPACE}"/version.properties" -BRANCH=$(echo ${WORKSPACE} | cut -d'-' -f2) -if [[ $BRANCH == "master" ]] -then - VERSION=$snapshot_version -else - VERSION=$release_version -fi - -echo "Workspace: " ${WORKSPACE} -echo "Gerrit branch: " $BRANCH -echo "Version number: " $VERSION - -PATH_TO_PARENT=${WORKSPACE} -PATH_TO_BOOT=${WORKSPACE}"/boot" -#PATH_TO_HEAT_MASTER=${WORKSPACE}"/heat/ONAP" -#PATH_TO_HEAT_VFW=${WORKSPACE}"/heat/vFW" -#PATH_TO_HEAT_VLB=${WORKSPACE}"/heat/vLB" -PATH_TO_VFW=${WORKSPACE}"/vnfs/vFW/scripts" -PATH_TO_VLB=${WORKSPACE}"/vnfs/vLB/scripts" -PATH_TO_VLBMS=${WORKSPACE}"/vnfs/vLBMS/scripts" -PATH_TO_VCPE=${WORKSPACE}"/vnfs/vCPE/scripts" - -PARENT_GROUP_ID="org.onap.demo" -BOOT_GROUP_ID=$PARENT_GROUP_ID"/boot" -#HEAT_MASTER_GROUP_ID=$PARENT_GROUP_ID"/heat/ONAP" -#HEAT_VFW_GROUP_ID=$PARENT_GROUP_ID"/heat/vFW" -#HEAT_VLB_GROUP_ID=$PARENT_GROUP_ID"/heat/vLB" -VFW_GROUP_ID=$PARENT_GROUP_ID"/vnfs/vfw" -VLB_GROUP_ID=$PARENT_GROUP_ID"/vnfs/vlb" -VLBMS_GROUP_ID=$PARENT_GROUP_ID"/vnfs/vlbms" -VCPE_GROUP_ID=$PARENT_GROUP_ID"/vnfs/vcpe" - -REPO_URL="https://nexus.onap.org/content/sites/raw" -USER=$(xpath -q -e "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE") -PASS=$(xpath -q -e "//servers/server[id='ecomp-raw']/password/text()" "$SETTINGS_FILE") -NETRC=$(mktemp) -echo "machine nexus.onap.org login ${USER} password ${PASS}" > "${NETRC}" -#################################################### - -##### Upload scripts into Nexus raw repository ##### -cd $PATH_TO_PARENT -curl -vk --netrc-file "${NETRC}" --upload-file README.md $REPO_URL/$PARENT_GROUP_ID/ -curl -vk --netrc-file "${NETRC}" --upload-file LICENSE.TXT $REPO_URL/$PARENT_GROUP_ID/ - -cd $PATH_TO_BOOT -ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$BOOT_GROUP_ID/$VERSION/{} - -#cd $PATH_TO_HEAT_MASTER -#ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$HEAT_MASTER_GROUP_ID/$VERSION/{} - -#cd $PATH_TO_HEAT_VFW -#ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$HEAT_VFW_GROUP_ID/$VERSION/{} - -#cd $PATH_TO_HEAT_VLB -#ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$HEAT_VLB_GROUP_ID/$VERSION/{} - -cd $PATH_TO_VFW -ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$VFW_GROUP_ID/$VERSION/{} - -cd $PATH_TO_VLB -ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$VLB_GROUP_ID/$VERSION/{} - -cd $PATH_TO_VLBMS -ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$VLBMS_GROUP_ID/$VERSION/{} - -cd $PATH_TO_VCPE -ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$VCPE_GROUP_ID/$VERSION/{} -#################################################### - -########## Clean up ########## -rm ${NETRC} -############################## |