aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/deploy.sh39
1 files changed, 30 insertions, 9 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 421220e6..ae92e0bb 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -3,15 +3,36 @@
set -x
########## Define parameters ##########
-VERSION="1.1.0-SNAPSHOT"
-
-PATH_TO_BOOT="/w/workspace/demo-master-merge-java/boot"
-PATH_TO_HEAT="/w/workspace/demo-master-merge-java/heat"
-PATH_TO_HEAT_MASTER="/w/workspace/demo-master-merge-java/heat/OpenECOMP"
-PATH_TO_HEAT_VFW="/w/workspace/demo-master-merge-java/heat/vFW"
-PATH_TO_HEAT_VLB="/w/workspace/demo-master-merge-java/heat/vLB"
-PATH_TO_VFW="/w/workspace/demo-master-merge-java/vnfs/vFW/scripts"
-PATH_TO_VLB="/w/workspace/demo-master-merge-java/vnfs/vLB/scripts"
+source ${WORKSPACE}"/version.properties"
+BRANCH=$(echo ${X} | cut -d'-' -f2)
+if [[ $BRANCH == "master" ]]
+then
+ VERSION=$snapshot_version
+else
+ VERSION=$release_version
+fi
+
+echo "This is the workspace: " ${WORKSPACE}
+echo "This is the branch: " $BRANCH
+echo "This is the version number: " $VERSION
+
+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"
+
+#VERSION="1.1.0-SNAPSHOT"
+
+#PATH_TO_BOOT="/w/workspace/demo-master-merge-java/boot"
+#PATH_TO_HEAT="/w/workspace/demo-master-merge-java/heat"
+#PATH_TO_HEAT_MASTER="/w/workspace/demo-master-merge-java/heat/OpenECOMP"
+#PATH_TO_HEAT_VFW="/w/workspace/demo-master-merge-java/heat/vFW"
+#PATH_TO_HEAT_VLB="/w/workspace/demo-master-merge-java/heat/vLB"
+#PATH_TO_VFW="/w/workspace/demo-master-merge-java/vnfs/vFW/scripts"
+#PATH_TO_VLB="/w/workspace/demo-master-merge-java/vnfs/vLB/scripts"
BOOT_GROUP_ID="org.openecomp.demo/boot"
HEAT_GROUP_ID="org.openecomp.demo/heat"