4 if [ -z ${WORKSPACE} ]; then
5 echo "WORKSPACE is unset. Please set."
9 /bin/rm -rf $WORKSPACE/*
14 SNAP_CACHE=$HOME/snap_cache
15 # clone opnfv sdnvpn repo
16 git clone https://gerrit.opnfv.org/gerrit/p/sdnvpn.git $WORKSPACE/sdnvpn
18 if [ ! -f "$NETVIRT_ARTIFACT" ]; then
19 echo "ERROR: ${NETVIRT_ARTIFACT} specified as NetVirt Artifact, but file does not exist"
23 # TODO (trozet) snapshot should have already been unpacked into cache folder
24 # but we really should check the cache here, and not use a single cache folder
25 # for when we support multiple jobs on a single slave
26 pushd sdnvpn/odl-pipeline/lib > /dev/null
27 ./odl_reinstaller.sh --pod-config ${SNAP_CACHE}/node.yaml \
28 --odl-artifact ${NETVIRT_ARTIFACT} --ssh-key-file ${SNAP_CACHE}/id_rsa