X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2F3rd_party_ci%2Finstall-netvirt.sh;h=f111d48479ddb5a6e6eb12e3a6b69fd8334eeb94;hb=7408371048bdb55a119e384925477a7bc527ab01;hp=c24e8903637b45131849ec02e6f5d1130f15d64f;hpb=42841e8a16fa4b1097b9ce9caa78d1d7383cb2eb;p=releng.git diff --git a/jjb/3rd_party_ci/install-netvirt.sh b/jjb/3rd_party_ci/install-netvirt.sh index c24e89036..f111d4847 100755 --- a/jjb/3rd_party_ci/install-netvirt.sh +++ b/jjb/3rd_party_ci/install-netvirt.sh @@ -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