prevent get_running_builds failure when ephemeral nodes disapear during the call

(for example docker ephemeral node may disapear and a 'node does not exist' exception is raised)

Change-Id: I0c4dc3f85b2dfc4f34e5bacf848cf408d210ba78
This commit is contained in:
Guillaume DeMengin 2025-04-06 23:08:29 +02:00 committed by guillaume de mengin
parent 8dbca8fe8a
commit 2f30bcf202

View File

@ -1542,6 +1542,10 @@ class Jenkins(object):
if ('[500]' in str(e) and
self.get_node_info(node_name, depth=0)):
continue
# ephemeral nodes may disapear
elif ('] does not exist' in str(e) and
node_name not in [nd['name'] for nd in self.get_nodes()]):
continue
else:
raise
for executor in info['executors']: