6 SNAP_CACHE=$HOME/snap_cache
7 # clone opnfv sdnvpn repo
8 git clone https://gerrit.opnfv.org/gerrit/p/sdnvpn.git $WORKSPACE/sdnvpn
10 if [ ! -f "/tmp/${NETVIRT_ARTIFACT}" ]; then
11 echo "ERROR: /tmp/${NETVIRT_ARTIFACT} specified as NetVirt Artifact, but file does not exist"
15 if [ ! -f "${SNAP_CACHE}/node.yaml" ]; then
16 echo "ERROR: node.yaml pod config missing in ${SNAP_CACHE}"
20 if [ ! -f "${SNAP_CACHE}/id_rsa" ]; then
21 echo "ERROR: id_rsa ssh creds missing in ${SNAP_CACHE}"
25 # TODO (trozet) snapshot should have already been unpacked into cache folder
26 # but we really should check the cache here, and not use a single cache folder
27 # for when we support multiple jobs on a single slave
28 pushd sdnvpn/odl-pipeline/lib > /dev/null
29 # FIXME (trozet) remove this once permissions are fixed in sdnvpn repo
30 chmod +x odl_reinstaller.sh
31 ./odl_reinstaller.sh --pod-config ${SNAP_CACHE}/node.yaml \
32 --odl-artifact /tmp/${NETVIRT_ARTIFACT} --ssh-key-file ${SNAP_CACHE}/id_rsa