From 6cb2387d1dd5f26748f67d1c743d88251c35b773 Mon Sep 17 00:00:00 2001 From: Zhaoxing Date: Thu, 11 Oct 2018 16:16:15 +0800 Subject: Fix wfengine docker build issue Issue-ID: VFC-851 Change-Id: I24da7a61402d692a44dbaf31e1e257f18f5a112c Signed-off-by: Zhaoxing --- .../src/main/docker/wfenginemgrservice-docker-build_image.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'wfenginemgrservice') diff --git a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh index ebb2c94..1225740 100644 --- a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh +++ b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh @@ -51,7 +51,7 @@ DOCKER_VER=${VERSION} cd ${DOCKER_BUILD_DIR} if [[ $VERSION != *-SNAPSHOT ]]; then - NEXUSREPONAME="releases" + NEXUSREPONAME="staging" else NEXUSREPONAME="snapshots" fi @@ -80,7 +80,11 @@ echo "${CURLPROXY}" -m 300 -O -J -L "${NEXUS_REPOS_URL}/service/local/artifact/ #curl "${CURLPROXY}" -m 300 -O -J -L "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=${NEXUSREPONAME}&g=org.onap.vfc.nfvo.wfengine&a=workflow-engine-mgr-service&e=jar&v=${VERSION}" #wget -O workflow-engine-mgr-service.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=${NEXUSREPONAME}&g=org.onap.vfc.nfvo.wfengine&a=workflow-engine-mgr-service&e=jar&v=${VERSION}" #wget -O workflow-engine-mgr-service.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=snapshots&g=org.onap.vfc.nfvo.wfengine&a=workflow-engine-mgr-service&e=jar&v=${VERSION}-SNAPSHOT" -wget -O workflow-engine-mgr-service.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=${NEXUSREPONAME}&g=org.onap.vfc.nfvo.wfengine&a=workflow-engine-mgr-service&e=jar&v=${VERSION}" +for i in {1..10}; do + wget -O workflow-engine-mgr-service.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=${NEXUSREPONAME}&g=org.onap.vfc.nfvo.wfengine&a=workflow-engine-mgr-service&e=jar&v=${VERSION}" && break + echo sleep $i + sleep $i +done mv workflow-engine-mgr-service*.jar ./bin/workflow-engine-mgr-service.jar -- cgit 1.2.3-korg