diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2019-05-08 21:24:46 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2019-05-08 21:24:46 -0700 |
commit | 22d037a5fd0fc932fb6d3b820f7a4ae1d5a4d1e8 (patch) | |
tree | 755cb5ae159a51fd53a32367144891b5595f6cb4 /jjb/testsuite | |
parent | 62492e177ec135fb269fb55c8f071d0ffec471bd (diff) |
Add timestamp tag for testsuite docker image
Change-Id: I0cae9a59c314111acff1bad9af32d65a03de36fe
Issue-ID: INT-1070
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'jjb/testsuite')
-rw-r--r-- | jjb/testsuite/testsuite-docker.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jjb/testsuite/testsuite-docker.sh b/jjb/testsuite/testsuite-docker.sh index d29d43c97..ca5e95aba 100644 --- a/jjb/testsuite/testsuite-docker.sh +++ b/jjb/testsuite/testsuite-docker.sh @@ -4,7 +4,11 @@ echo '============== CALLING SCRIPT TO CREATE DOCKER IMAGES =================' cp $WORKSPACE/docker/* . docker -D build -t onap/testsuite . export REPO="nexus3.onap.org:10003" -for tag in $tags + +DATETIME_STAMP=$(date +%Y%m%dT%H%M%S) +STAGING_TAG=${base_version}-STAGING-${DATETIME_STAMP}Z + +for tag in $tags $STAGING_TAG do docker tag onap/testsuite:latest $REPO/onap/testsuite:$tag docker push $REPO/onap/testsuite:$tag |