diff options
author | Marco Platania <platania@research.att.com> | 2017-03-24 16:58:47 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-03-24 16:58:47 -0400 |
commit | 07772c21e16b82c2d1d7c1b0985bf0a821626d57 (patch) | |
tree | 75ed8d2fb141c31c4ae32a5392a150a1ba539606 /scripts | |
parent | 1dbe19bb4b9f951bf11a87940115aac4657a191f (diff) |
update README and script/deploy.sh
Change-Id: I7def759d1b09e3b455552fd3dd5e9a8ed977398a
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deploy.sh | 24 |
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/{} |