Monty Taylor 32978fe729 Update to tip of master in periodic jobs
The intent of the periodic jobs is to run with latest master. If
they get enqueued, then other patches land, they'll still run with
the value of the zuul ref from when they were enqueued. That's not
what we want for prod, as it can lead to running old versions of
config.

We don't usually like doing this, but in this case, rather than
making us remember to add a flag every time a prod job gets added
to a periodic pipeline, how's about we just calculate it.

Change-Id: Ib999731fe132b1e9f197e51d74066fa75cb6c69b
2020-04-28 12:01:51 -05:00

18 lines
470 B
YAML

- name: Create project-config dir
file:
path: '{{ project_config_dest }}'
state: directory
- name: Update from master
when: infra_prod_run_from_master|bool
delegate_to: bridge.openstack.org
git:
repo: https://opendev.org/openstack/project-config
dest: '{{ project_config_src }}'
force: yes
- name: Sync project-config repo
synchronize:
src: '{{ project_config_src }}/{{ project_config_subdir }}'
dest: '{{ project_config_dest }}'