summaryrefslogtreecommitdiffstats
path: root/jjb/include-docker-push.sh
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-03-09 22:17:50 +0000
committerVenkata Harish K Kajur <vk250x@att.com>2017-03-09 22:17:57 +0000
commitda43c21cc39323054b1be9f645d7c3f59a61bca2 (patch)
tree2bf4d4bf661715552bcd1ce2b6ccfdfcf7d93edf /jjb/include-docker-push.sh
parentb8369604cb0c8c6ffa00483c4a7f3296026a4bd2 (diff)
Set docker version to be from version properties
Change-Id: I9a6e25c25cc3587b7c03ea24d04dc7b8e29d7d17 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'jjb/include-docker-push.sh')
-rw-r--r--jjb/include-docker-push.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/jjb/include-docker-push.sh b/jjb/include-docker-push.sh
index 30aa32d7a..7b42fcd73 100644
--- a/jjb/include-docker-push.sh
+++ b/jjb/include-docker-push.sh
@@ -3,7 +3,19 @@
DOCKER_REPOSITORY="nexus3.openecomp.org:10003"
SEARCH="aai-service";
DATETIME_STAMP=$(date +%Y%m%dT%H%M%S);
-VERSION=1.0.0;
+VERSION_FILE="version.properties"
+
+# Check for the version file
+# If it exists, load the version from that file
+# If not found, then use the current version as 1.1.0 for docker images
+if [ -f "$VERSION_FILE" ]; then
+ source $VERSION_FILE;
+ VERSION=$release_version;
+else
+ VERSION=1.1.0;
+fi
+
+
SNAPSHOT_TAG=${VERSION}-SNAPSHOT-${DATETIME_STAMP};
STAGING_TAG=${VERSION}-STAGING-${DATETIME_STAMP};