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
This commit is contained in:
Monty Taylor 2020-03-31 11:23:34 -05:00
parent 5d4c597fa8
commit 764d10d429

View File

@ -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