summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-09-18 22:28:45 -0400
committerMatthewLi <matthew.lijun@huawei.com>2016-09-19 04:27:38 -0400
commit62fb1ae22a2783f9803c863d0a7991c8949e2e27 (patch)
tree51406c8301d29b3be175b7981c05b3fa8f55ddbd /utils
parent3c11732847926c7b8be63cf1140d415d935cd56c (diff)
dovetail docker job added
JIRA: DOVETAIL-14 Change-Id: I41be18ee88f5798509a608fe9bd66c6971bbff82 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/calculate_version.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/calculate_version.sh b/utils/calculate_version.sh
index 608a3bd73..cf929dd5e 100755
--- a/utils/calculate_version.sh
+++ b/utils/calculate_version.sh
@@ -35,11 +35,13 @@ function docker_version() {
fi
tag_json=$(curl $url_tag 2>/dev/null | python -mjson.tool | grep ${BASE_VERSION} | head -1)
#e.g. tag_json= "name": "brahmaputra.0.2",
+ #special case, for dovetail, not sync with release, tag_json name not headed with arno, etc
if [ "${tag_json}" == "" ]; then
echo ${BASE_VERSION}.0
else
tag=$(echo $tag_json | awk '{print $2}' | sed 's/\,//' | sed 's/\"//g')
#e.g.: tag=brahmaputra.0.2
+ #special case, for dovetail, not sync with release
tag_current_version=$(echo $tag | sed 's/.*\.//')
tag_new_version=$(($tag_current_version+1))
#e.g.: tag=brahmaputra.0.3