summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-12 03:24:27 +0000
committerLusheng Ji <lji@research.att.com>2017-09-12 03:24:34 +0000
commit869ede1c52f9c1602e69d4814398e3ddde3ed2c2 (patch)
treecfd1d943e780cb3406328dabeaa108d212e8252c
parent1694802295e445771fe32bd3a14fefb53e3ab9fa (diff)
Fix docker build path
Issue-Id: DCAEGEN2-60 Change-Id: Id4aead99e0f7c629eac3ba092b603502f9622e98 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xmvn-phase-lib.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh
index 2a924f7d..9de7cced 100755
--- a/mvn-phase-lib.sh
+++ b/mvn-phase-lib.sh
@@ -237,9 +237,12 @@ build_and_push_docker()
VERSION2=$(echo "$VERSION" | cut -f1-2 -d'.')
LFQI="${IMAGENAME}:${VERSION}-${TIMESTAMP}"
- BUILD_PATH="${WORKSPACE}"
+ #BUILD_PATH="${WORKSPACE}"
# build a docker image
- docker build --rm -f "${WORKSPACE}"/Dockerfile -t "${LFQI}" "${BUILD_PATH}"
+ #docker build --rm -f "${WORKSPACE}"/Dockerfile -t "${LFQI}" "${BUILD_PATH}"
+ #BUILD_PATH="${WORKSPACE}"
+ # build a docker image
+ docker build --rm -f ./Dockerfile -t "${LFQI}" ./
REPO=""
if [ $MVN_DEPLOYMENT_TYPE == "SNAPSHOT" ]; then