Add a job to cleanup orphaned nodes 73/66473/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 14 Dec 2017 20:42:25 +0000 (15:42 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 14 Dec 2017 22:00:59 +0000 (17:00 -0500)
commitc9c7648310f4522a4e1cf0f7533773f2bb9adca1
treebd32d3ef67df92efa620574bde3411786d44b17e
parent87d0a1f998294805bffd311f5339d60a316d9212
Add a job to cleanup orphaned nodes

This job assumes that releng minions have a 'prd' prefix and
sandbox has a 'snd' prefix. These minions are Jenkins managed
minions and are not Heat managed minions.

The script get's a list of jobs with the prd or snd prefix and then
checks against Jenkins to see if the nodes are attached to Jenkins
if they are not then issue a delete call as it is likely Jenkins
lost track of them.

Issue: RELENG-724
Change-Id: I624102ace279d49d2696d287cfea9e4e89ba7a20
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/opendaylight-infra-cleanup-orphaned-nodes.sh [new file with mode: 0644]
jjb/releng-jobs.yaml