timer: do not skip projects using pipeline from template
This change fix an issue when projects are configured through template. The template are not applied in the project_configs list and the driver needs to explicitly request AllProjectConfigs to check if a timer tirggered pipeline is in use. Change-Id: I2798ba97d942425e5e2ffeddb8ba5584eac36004
This commit is contained in:
@@ -83,7 +83,8 @@ class TimerDriver(Driver, TriggerInterface):
|
||||
# timer operates on branch heads and doesn't need speculative
|
||||
# layouts to decide if it should be enqueued or not.
|
||||
# So it can be decided on cached data if it needs to run or not.
|
||||
if not [True for pc in pcs if pipeline_name in pc.pipelines]:
|
||||
pcst = tenant.layout.getAllProjectConfigs(project_name)
|
||||
if not [True for pc in pcst if pipeline_name in pc.pipelines]:
|
||||
continue
|
||||
|
||||
(trusted, project) = tenant.getProject(project_name)
|
||||
|
||||
Reference in New Issue
Block a user