Merge "infra: bifrost: Upload build logs to artifacts.opnfv.org"
[releng.git] / jjb / 3rd_party_ci / install-netvirt.sh
index c24e890..f111d48 100755 (executable)
@@ -1,4 +1,15 @@
 #!/bin/bash
+set -e
 
-echo "Using the downloaded artifact to install netvirt"
-ls -al $NETVIRT_ARTIFACT
+if [ -z ${WORKSPACE} ]; then
+  echo "WORKSPACE is unset. Please do so."
+  exit 1
+fi
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE/*
+# clone opnfv sdnvpn repo
+git clone https://gerrit.opnfv.org/gerrit/p/sdnvpn.git $WORKSPACE/sdnvpn
+. $WORKSPACE/sdnvpn/odl-pipeline/odl-pipeline-common.sh
+pushd $LIB
+./odl_reinstaller.sh --cloner-info $CLONER_INFO --odl-artifact $NETVIRT_ARTIFACT
+popd
\ No newline at end of file