aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/download_hc_build_pkgs.sh
diff options
context:
space:
mode:
authorselias <samelias@cisco.com>2017-04-05 11:54:06 +0200
committerTibor Frank <tifrank@cisco.com>2017-04-12 14:29:19 +0000
commitf22a379d100c8669741e550ab25a599b24bd84de (patch)
tree40c827b9bf00111ca88597fd4d5f5574fe139d68 /resources/tools/download_hc_build_pkgs.sh
parent0ad79235c1fc9cd6c8d7a5e894c4d69490afda3c (diff)
CSIT-544 HC Test: adapt package download script to changes in hc2vpp
Required after https://gerrit.fd.io/r/5908 hc2vpp packages to be published with a specific VPP version dependency. Change-Id: I9a31a83ec033a01556b4afd8575d8ccae4139b7f Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/tools/download_hc_build_pkgs.sh')
-rwxr-xr-xresources/tools/download_hc_build_pkgs.sh24
1 files changed, 22 insertions, 2 deletions
diff --git a/resources/tools/download_hc_build_pkgs.sh b/resources/tools/download_hc_build_pkgs.sh
index 9bcaefb8d0..f653b5b875 100755
--- a/resources/tools/download_hc_build_pkgs.sh
+++ b/resources/tools/download_hc_build_pkgs.sh
@@ -45,13 +45,13 @@ fi
REPO="fd.io.${STREAM}.${OS}"
for ART in ${VPP_ARTIFACTS}; do
- for PAC in $PACKAGE; do
+ for PAC in ${PACKAGE}; do
curl "${URL}?r=${REPO}&g=${VPP_GROUP}&a=${ART}&p=${PAC}&v=${VER}&c=${CLASS}" -O -J || exit
done
done
for ART in ${NSH_ARTIFACTS}; do
- for PAC in $PACKAGE; do
+ for PAC in ${PACKAGE}; do
curl "${URL}?r=${REPO}&g=${NSH_GROUP}&a=${ART}&p=${PAC}&v=${VER}&c=${CLASS}" -O -J || exit
done
done
@@ -63,3 +63,23 @@ done
for MD5FILE in *.md5; do
md5sum -c ${MD5FILE} || exit
done
+
+# installing vpp-api-java places jvpp jars into /usr/share/java
+sudo dpkg -i *.deb
+
+# install jvpp jars into maven repo, so that maven picks them up when building hc2vpp
+version=`./jvpp-version`
+
+current_dir=`pwd`
+cd /usr/share/java
+
+for item in jvpp*.jar; do
+ # Example filename: jvpp-registry-17.01-20161206.125556-1.jar
+ # ArtifactId = jvpp-registry
+ # Version = 17.01
+ basefile=$(basename -s .jar "$item")
+ artifactId=$(echo "$basefile" | cut -d '-' -f 1-2)
+ mvn install:install-file -Dfile=${item} -DgroupId=io.fd.vpp -DartifactId=${artifactId} -Dversion=${version} -Dpackaging=jar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
+done
+
+cd current_dir \ No newline at end of file