diff options
author | Lusheng Ji <lji@research.att.com> | 2018-04-04 21:51:34 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-04-05 02:41:25 +0000 |
commit | 3622f7a20e615d409dd5a8dea3ae592115df91ae (patch) | |
tree | 1ebd8cce7be5c3013c26139aed1eceec22080349 /tca-cdap-container/get-tca.sh | |
parent | 6fabd804de890bc5069d2518fffb11b83ea5961a (diff) |
Fix TCA image
Issue-ID: DCAEGEN2-206
Change-Id: I8fa5150bffc0e371ab09bd75f1df4e460bf85a72
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'tca-cdap-container/get-tca.sh')
-rwxr-xr-x | tca-cdap-container/get-tca.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tca-cdap-container/get-tca.sh b/tca-cdap-container/get-tca.sh index 2a9cf62..66038b1 100755 --- a/tca-cdap-container/get-tca.sh +++ b/tca-cdap-container/get-tca.sh @@ -1,16 +1,17 @@ #!/bin/bash +ARTIFACTPATH=${1:-/opt/tca/} PROTO='https' NEXUSREPO='nexus.onap.org' REPO='snapshots' GROUPID='org.onap.dcaegen2.analytics.tca' -ARTIFACTID='dcae-analytics-tca' +ARTIFACTID='dcae-analytics-cdap-tca' VERSION='2.2.0-SNAPSHOT' URL="${PROTO}://${NEXUSREPO}/service/local/repositories/${REPO}/content/${GROUPID//.//}/${ARTIFACTID}/${VERSION}/maven-metadata.xml" VT=$(wget --no-check-certificate -O- $URL | grep -m 1 \<value\> | sed -e 's/<value>\(.*\)<\/value>/\1/' | sed -e 's/ //g') URL="${PROTO}://${NEXUSREPO}/service/local/repositories/${REPO}/content/${GROUPID//.//}/${ARTIFACTID}/${VERSION}/${ARTIFACTID}-${VT}.jar" -#wget --no-check-certificate "${URL}" -O "/opt/tca/${ARTIFACTID}-${VERSION%-SNAPSHOT}.jar" -wget --no-check-certificate "${URL}" -O "${ARTIFACTID}-${VERSION%-SNAPSHOT}.jar" +#wget --no-check-certificate "${URL}" -O "${ARTIFACTPATH}${ARTIFACTID}-${VERSION%-SNAPSHOT}.jar" +wget --no-check-certificate "${URL}" -O "${ARTIFACTPATH}${ARTIFACTID}.${VERSION}.jar" |