aboutsummaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-02 22:42:25 -0400
committerLusheng Ji <lji@research.att.com>2018-04-02 23:34:17 -0400
commitc286d63491a293a4147d985e3bbc31f78abdf716 (patch)
treef19acd003116d180b4dcc4680a682dbf6e985abc /mvn-phase-script.sh
parent5d97f7b84e87474939a73ffb962731cbfdd735e7 (diff)
Fix docker tag based on CIMAN-132
Also specify the tox version. If using the newest, 3.0.0, tox will fail due to not able to find pip.req. So try the version of tox used by the last successful tox run, 2.9.1. Also fixing pip version to 9.0.3. Issue-ID: DCAEGEN2-206 Change-Id: Iee6b635dc4fbe7e2b81d512627d7afd4097de635 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-xmvn-phase-script.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index ae1fd65..bf6c4ed 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -138,12 +138,13 @@ run_tox_test()
rm -rf ./venv-tox ./.tox
virtualenv ./venv-tox
source ./venv-tox/bin/activate
- pip install --upgrade pip
- pip install --upgrade tox argparse
+ pip install pip==9.0.3
+ pip install --upgrade argparse
+ pip install tox==2.9.1
pip freeze
tox
deactivate
- rm -rf ./venv-tox ./.tox
+ #rm -rf ./venv-tox ./.tox
done
}
@@ -237,7 +238,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_PATH="${WORKSPACE}"
# build a docker image
docker build --rm -f "${WORKSPACE}"/Dockerfile -t "${LFQI}" "${BUILD_PATH}"
@@ -280,7 +281,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}"