From 2a1b5a65d06dbe70f835ab3c511416bc1c9e28ae Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 12 Jun 2026 08:36:17 +0200 Subject: [PATCH] [FIX] runbot: link existing build on slot Link build on slot in all cases if a build for the same params exists. --- 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 5f03d4973..143587a53 100644 --- a/runbot/models/batch.py +++ b/runbot/models/batch.py @@ -467,7 +467,7 @@ def _start_builds(self): common_repo = (trigger.repo_ids & bundle_repos) if self.build_all and not common_repo: common_repo = (trigger.dependency_ids & bundle_repos) - if (common_repo or bundle.build_all or bundle.sticky) and enable_on_bundle: + if (common_repo or bundle.build_all or bundle.sticky or trigger.params_id.build_ids) and enable_on_bundle: should_start_triggers_ids.add(trigger.id) disabled_triggers = self.bundle_id.all_trigger_custom_ids.filtered(lambda tc: tc.start_mode == 'disabled').trigger_id