diff options
author | Vijay VK <vv770d@att.com> | 2018-04-06 22:38:58 +0100 |
---|---|---|
committer | VENKATESH KUMAR <vv770d@att.com> | 2018-04-07 00:49:31 -0400 |
commit | 56274201c51ac6a6f8c859f0b931515b50c31d0e (patch) | |
tree | f94c8716c5165c1120d17ae144ab09c3a40a8e05 /mvn-phase-lib.sh | |
parent | 60367be29283c81f5b977e71c9d06e34f565f840 (diff) |
fix default properties
Change-Id: Iae00d76ac70d6fc318d54151f99ec58eb8188aac
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Issue-ID: DCAEGEN2-434
Diffstat (limited to 'mvn-phase-lib.sh')
-rwxr-xr-x | mvn-phase-lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh index d3c3f258..ac537223 100755 --- a/mvn-phase-lib.sh +++ b/mvn-phase-lib.sh @@ -237,7 +237,7 @@ build_and_push_docker() VERSION="${MVN_PROJECT_VERSION//[^0-9.]/}" VERSION2=$(echo "$VERSION" | cut -f1-2 -d'.') - LFQI="${IMAGENAME}:${VERSION}-${TIMESTAMP}" + LFQI="${IMAGENAME}:${VERSION}-${TIMESTAMP}"Z # build a docker image docker build --rm -f ./Dockerfile -t "${LFQI}" ./ @@ -279,7 +279,7 @@ build_and_push_docker() fi OLDTAG="${LFQI}" - PUSHTAGS="${REPO}/${IMAGENAME}:${VERSION2}-${TIMESTAMP} ${REPO}/${IMAGENAME}:${VERSION2} ${REPO}/${IMAGENAME}:${VERSION2}-latest" + PUSHTAGS="${REPO}/${IMAGENAME}:${VERSION}-SNAPSHOT-${TIMESTAMP}Z ${REPO}/${IMAGENAME}:${VERSION} ${REPO}/${IMAGENAME}:latest" for NEWTAG in ${PUSHTAGS} do echo "tagging ${OLDTAG} to ${NEWTAG}" |