From e241f03321d3bbfb71303057b80a0de717f3db5d Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 17 Apr 2024 14:28:53 +0200 Subject: [PATCH] [FIX] runbot: only start triggers based on alive branches --- runbot/models/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/batch.py b/runbot/models/batch.py index fad30b49..0b3e40b7 100644 --- a/runbot/models/batch.py +++ b/runbot/models/batch.py @@ -384,7 +384,7 @@ class Batch(models.Model): def _start_builds(self): self.ensure_one() bundle = self.bundle_id - bundle_repos = bundle.branch_ids.mapped('remote_id.repo_id') + bundle_repos = bundle.branch_ids.filtered('alive').mapped('remote_id.repo_id') success_trigger = self.slot_ids.filtered(lambda s: s.build_id.global_state in ('running', 'done') and s.build_id.global_result == "ok").trigger_id trigger_customs = {} for trigger_custom in self.bundle_id.trigger_custom_ids: