From a7417591cd3a600bbbb4fbbc6e30c376ea9b6218 Mon Sep 17 00:00:00 2001 From: platania Date: Thu, 16 Feb 2017 18:00:15 -0500 Subject: Renaming scripts folder Change-Id: Ie47a38d5f320a8d273bb3bb8c2a6b8dbbed655b5 Signed-off-by: platania --- scripts/.DS_Store | Bin 0 -> 6148 bytes scripts/deploy.sh | 36 ++++++++++++++++++++++++++++++++++++ scripts/deploy_boot.sh | 11 +++++++++++ scripts/deploy_heat.sh | 11 +++++++++++ scripts/deploy_vfw_scripts.sh | 11 +++++++++++ scripts/deploy_vlb_scripts.sh | 11 +++++++++++ 6 files changed, 80 insertions(+) create mode 100644 scripts/.DS_Store create mode 100755 scripts/deploy.sh create mode 100755 scripts/deploy_boot.sh create mode 100755 scripts/deploy_heat.sh create mode 100755 scripts/deploy_vfw_scripts.sh create mode 100755 scripts/deploy_vlb_scripts.sh (limited to 'scripts') diff --git a/scripts/.DS_Store b/scripts/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/scripts/.DS_Store differ diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 00000000..3cfe1945 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +########## Define parameters ########## +VERSION="1.0.0" + +PATH_TO_BOOT="../boot" +PATH_TO_HEAT="../heat" +PATH_TO_VFW="../vnfs/vFW/scripts" +PATH_TO_VLB="../vnfs/vLB/scripts" + +BOOT_GROUP_ID="org.openecomp.demo.boot" +HEAT_GROUP_ID="org.openecomp.demo.heat" +VFW_GROUP_ID="org.openecomp.demo.vnfs.vfw" +VLB_GROUP_ID="org.openecomp.demo.vnfs.vlb" + +#NEXUSPROXY=https://nexus.openecomp.org +REPO_URL="${NEXUSPROXY}/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.openecomp.org login ${USER} password ${PASS}" > "${NETRC}" +####################################### + +##### Upload scripts into Nexus raw repository ##### +cd $PATH_TO_BOOT +ls | xargs -I{} curl -k --netrc-file '${NETRC}' --upload-file {} $REPO_URL/$BOOT_GROUP_ID/$VERSION/{} + +cd $PATH_TO_HEAT +ls | xargs -I{} curl -k --netrc-file '${NETRC}' --upload-file {} $REPO_URL/$HEAT_GROUP_ID/$VERSION/{} + +cd $PATH_TO_VFW +ls | xargs -I{} curl -k --netrc-file '${NETRC}' --upload-file {} $REPO_URL/$VFW_GROUP_ID/$VERSION/{} + +cd $PATH_TO_VLB +ls | xargs -I{} curl -k --netrc-file '${NETRC}' --upload-file {} $REPO_URL/$VLB_GROUP_ID/$VERSION/{} +#################################################### diff --git a/scripts/deploy_boot.sh b/scripts/deploy_boot.sh new file mode 100755 index 00000000..fb256559 --- /dev/null +++ b/scripts/deploy_boot.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source repo_config.txt + +SOURCE_DIR=../boot +GROUP_ID=org.openecomp.demo.boot +VERSION=1.0.0 + +cd $SOURCE_DIR +ls | xargs -I{} curl -v -u $REPO_USERNAME:$REPO_PASSWORD --upload-file {} $REPO_URL/$GROUP_ID/$VERSION/{} + diff --git a/scripts/deploy_heat.sh b/scripts/deploy_heat.sh new file mode 100755 index 00000000..74a16201 --- /dev/null +++ b/scripts/deploy_heat.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source repo_config.txt + +SOURCE_DIR=../heat +GROUP_ID=org.openecomp.demo.heat +VERSION=1.0.0 + +cd $SOURCE_DIR +ls | xargs -I{} curl -v -u $REPO_USERNAME:$REPO_PASSWORD --upload-file {} $REPO_URL/$GROUP_ID/$VERSION/{} + diff --git a/scripts/deploy_vfw_scripts.sh b/scripts/deploy_vfw_scripts.sh new file mode 100755 index 00000000..49e7b019 --- /dev/null +++ b/scripts/deploy_vfw_scripts.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source repo_config.txt + +SOURCE_DIR=../vnfs/vFW/scripts +GROUP_ID=org.openecomp.demo.vnf.vfw +VERSION=1.0.0 + +cd $SOURCE_DIR +ls | xargs -I{} curl -v -u $REPO_USERNAME:$REPO_PASSWORD --upload-file {} $REPO_URL/$GROUP_ID/$VERSION/{} + diff --git a/scripts/deploy_vlb_scripts.sh b/scripts/deploy_vlb_scripts.sh new file mode 100755 index 00000000..88c431f6 --- /dev/null +++ b/scripts/deploy_vlb_scripts.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source repo_config.txt + +SOURCE_DIR=../vnfs/vLB/scripts +GROUP_ID=org.openecomp.demo.vnf.vlb +VERSION=1.0.0 + +cd $SOURCE_DIR +ls | xargs -I{} curl -v -u $REPO_USERNAME:$REPO_PASSWORD --upload-file {} $REPO_URL/$GROUP_ID/$VERSION/{} + -- cgit 1.2.3-korg