diff options
author | Lusheng Ji <lji@research.att.com> | 2018-03-28 07:38:05 -0700 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-03-28 07:38:14 -0700 |
commit | 42014650de4ec32155b663594dee8cc0b066f6a9 (patch) | |
tree | 4b2a0f528604b70ef4e44c1b04ac0c34dbb84b5c /tca-cdap-container/get-tca.sh | |
parent | 230ae894c1b2f489e31d6a0d9f7db99cf6b65cbe (diff) |
Change how to fetch TCA jar
Issue-ID: DCAEGEN2-357
Change-Id: I0edaf2cbdea6b98ef438b03e8f400ca05090b052
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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tca-cdap-container/get-tca.sh b/tca-cdap-container/get-tca.sh new file mode 100755 index 0000000..2a9cf62 --- /dev/null +++ b/tca-cdap-container/get-tca.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +PROTO='https' +NEXUSREPO='nexus.onap.org' +REPO='snapshots' +GROUPID='org.onap.dcaegen2.analytics.tca' +ARTIFACTID='dcae-analytics-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" + |