summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-02-16 18:00:15 -0500
committerplatania <platania@research.att.com>2017-02-16 18:02:42 -0500
commita7417591cd3a600bbbb4fbbc6e30c376ea9b6218 (patch)
treebabfb1713c5141dd6769629a5789ad6f08ace902
parente02a7ebfe9e964d538a15a3123a3967ae959c1e1 (diff)
Renaming scripts folder
Change-Id: Ie47a38d5f320a8d273bb3bb8c2a6b8dbbed655b5 Signed-off-by: platania <platania@research.att.com>
-rw-r--r--deploy_scripts/repo_config.txt4
-rw-r--r--scripts/.DS_Store (renamed from deploy_scripts/.DS_Store)bin6148 -> 6148 bytes
-rwxr-xr-xscripts/deploy.sh36
-rwxr-xr-xscripts/deploy_boot.sh (renamed from deploy_scripts/deploy_boot.sh)0
-rwxr-xr-xscripts/deploy_heat.sh (renamed from deploy_scripts/deploy_heat.sh)0
-rwxr-xr-xscripts/deploy_vfw_scripts.sh (renamed from deploy_scripts/deploy_vfw_scripts.sh)0
-rwxr-xr-xscripts/deploy_vlb_scripts.sh (renamed from deploy_scripts/deploy_vlb_scripts.sh)0
7 files changed, 36 insertions, 4 deletions
diff --git a/deploy_scripts/repo_config.txt b/deploy_scripts/repo_config.txt
deleted file mode 100644
index 8430dd41..00000000
--- a/deploy_scripts/repo_config.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-REPO_URL=https://ecomp-nexus:8443/repository/raw
-REPO_USERNAME=
-REPO_PASSWORD=
-
diff --git a/deploy_scripts/.DS_Store b/scripts/.DS_Store
index 5008ddfc..5008ddfc 100644
--- a/deploy_scripts/.DS_Store
+++ b/scripts/.DS_Store
Binary files 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/deploy_scripts/deploy_boot.sh b/scripts/deploy_boot.sh
index fb256559..fb256559 100755
--- a/deploy_scripts/deploy_boot.sh
+++ b/scripts/deploy_boot.sh
diff --git a/deploy_scripts/deploy_heat.sh b/scripts/deploy_heat.sh
index 74a16201..74a16201 100755
--- a/deploy_scripts/deploy_heat.sh
+++ b/scripts/deploy_heat.sh
diff --git a/deploy_scripts/deploy_vfw_scripts.sh b/scripts/deploy_vfw_scripts.sh
index 49e7b019..49e7b019 100755
--- a/deploy_scripts/deploy_vfw_scripts.sh
+++ b/scripts/deploy_vfw_scripts.sh
diff --git a/deploy_scripts/deploy_vlb_scripts.sh b/scripts/deploy_vlb_scripts.sh
index 88c431f6..88c431f6 100755
--- a/deploy_scripts/deploy_vlb_scripts.sh
+++ b/scripts/deploy_vlb_scripts.sh