summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-03-24 16:34:55 -0400
committerMarco Platania <platania@research.att.com>2017-03-24 16:34:55 -0400
commit83ab662f1fe21de1be88b426668eb0f09569cce5 (patch)
tree17a64a5eb406ecb69b74fcaab85aec4ef9392dcc /scripts
parentf1a955e5c1c80714195b456ab7145815738e3c66 (diff)
change README and deploy.sh
Change-Id: I63e079eeef7a015e28ee23dfdcb6b515b19c49c5 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 088f66eb..2ba5ea61 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -16,21 +16,21 @@ echo "Workspace: " ${WORKSPACE}
echo "Gerrit branch: " $BRANCH
echo "Version number: " $VERSION
+PATH_TO_PARENT=${WORKSPACE}
PATH_TO_BOOT=${WORKSPACE}"/boot"
-PATH_TO_HEAT=${WORKSPACE}"/heat"
PATH_TO_HEAT_MASTER=${WORKSPACE}"/heat/OpenECOMP"
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"
-BOOT_GROUP_ID="org.openecomp.demo/boot"
-HEAT_GROUP_ID="org.openecomp.demo/heat"
-HEAT_MASTER_GROUP_ID="org.openecomp.demo/heat/OpenECOMP"
-HEAT_VFW_GROUP_ID="org.openecomp.demo/heat/vFW"
-HEAT_VLB_GROUP_ID="org.openecomp.demo/heat/vLB"
-VFW_GROUP_ID="org.openecomp.demo/vnfs/vfw"
-VLB_GROUP_ID="org.openecomp.demo/vnfs/vlb"
+PARENT_GROUP_ID="org.openecomp.demo"
+BOOT_GROUP_ID=$PARENT_GROUP_ID"/boot"
+HEAT_MASTER_GROUP_ID=$PARENT_GROUP_ID"/heat/OpenECOMP"
+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"
REPO_URL="https://nexus.openecomp.org/content/sites/raw"
USER=$(xpath -q -e "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE")
@@ -40,13 +40,13 @@ echo "machine nexus.openecomp.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
-curl -vk --netrc-file "${NETRC}" --upload-file $PATH_TO_HEAT/README.md $REPO_URL/$HEAT_GROUP_ID/
-curl -vk --netrc-file "${NETRC}" --upload-file $PATH_TO_HEAT/LICENSE.TXT $REPO_URL/$HEAT_GROUP_ID/
-
cd $PATH_TO_HEAT_MASTER
ls | xargs -I{} curl -vk --netrc-file "${NETRC}" --upload-file {} $REPO_URL/$HEAT_MASTER_GROUP_ID/$VERSION/{}