From 764d10d429eb674d739ce8541da57c71389ec90e Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 31 Mar 2020 11:23:34 -0500 Subject: [PATCH] Add some belts and suspenders to the manage-projects job Be explicit that we expect this only to run in system-config or project-config, and add a semaphor so that we don't simulrun. Change-Id: I4fbebf8160e9550ccc5e2f840dd6f9d1fe48665b --- .zuul.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index f69ed130d9..7fcb7694dc 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1423,11 +1423,20 @@ vars: playbook_name: zuul_reconfigure.yaml +# Make sure only one run of manage-projects happens at a time +- semaphore: + name: infra-prod-manage-projects-runs + max: 1 + - job: name: infra-prod-manage-projects parent: infra-prod-playbook description: | Create and update projects in gerrit and gitea. + allowed-projects: + - opendev/system-config + - openstack/project-config + semaphore: infra-prod-manage-projects-runs vars: playbook_name: manage-projects.yaml infra_prod_playbook_collect_log: false