X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fodl-openstack-cleanup-stale-nodes.sh;h=f9af3c8e168918ceec06153f9bc65551ec6ca2a4;hb=f7d171b681e02b7eb90a050aaea7fb563b546d35;hp=ddd104180613badd389c4da532de706874a6da05;hpb=01453b518a4698c5b43ca523e0f68e45d016442e;p=releng%2Fbuilder.git diff --git a/jjb/odl-openstack-cleanup-stale-nodes.sh b/jjb/odl-openstack-cleanup-stale-nodes.sh index ddd104180..f9af3c8e1 100644 --- a/jjb/odl-openstack-cleanup-stale-nodes.sh +++ b/jjb/odl-openstack-cleanup-stale-nodes.sh @@ -10,13 +10,14 @@ ############################################################################## echo "---> Cleanup stale nodes" +# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091 +source "/tmp/v/openstack/bin/activate" + # Todo: As a safe check we could obtain the list of active jobs from Jenkins and # compute the checksum from $JOB_NAME to check if any active nodes exist and # skip deleting those nodes. This step may not be required since there is already # 24H timeout in place for all jobs therefore all jobs are expected to complete # within the timeout. -# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 -source "/tmp/v/lftools/bin/activate" lftools openstack --os-cloud vex server list --days=1 lftools openstack --os-cloud vex server cleanup --days=1