Merge "Convert back to zuul.projects"
This commit is contained in:
commit
d3955a9d3f
@ -4,13 +4,13 @@
|
|||||||
value: ignore
|
value: ignore
|
||||||
scope: local
|
scope: local
|
||||||
repo: "{{ ansible_user_dir }}/{{ item.value.src_dir}}"
|
repo: "{{ ansible_user_dir }}/{{ item.value.src_dir}}"
|
||||||
with_dict: "{{ zuul._projects }}"
|
with_dict: "{{ zuul.projects }}"
|
||||||
|
|
||||||
- name: Synchronize src repos to workspace directory
|
- name: Synchronize src repos to workspace directory
|
||||||
command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
|
command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
|
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
|
||||||
with_dict: "{{ zuul._projects }}"
|
with_dict: "{{ zuul.projects }}"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
||||||
# but push is not supported by ansible git module.
|
# but push is not supported by ansible git module.
|
||||||
@ -22,7 +22,7 @@
|
|||||||
shell: "echo '{{ item.key }}:' $(git status | head -1 |awk '{ print $NF }')"
|
shell: "echo '{{ item.key }}:' $(git status | head -1 |awk '{ print $NF }')"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
|
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
|
||||||
with_dict: "{{ zuul._projects }}"
|
with_dict: "{{ zuul.projects }}"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
register: project_heads_yaml
|
register: project_heads_yaml
|
||||||
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
||||||
@ -46,7 +46,7 @@
|
|||||||
git checkout {{ project_heads[item.key] }}
|
git checkout {{ project_heads[item.key] }}
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
|
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
|
||||||
with_dict: "{{ zuul._projects }}"
|
with_dict: "{{ zuul.projects }}"
|
||||||
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
|
||||||
# but we prefer the shell above
|
# but we prefer the shell above
|
||||||
tags:
|
tags:
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
tox_envlist: "{{ tox_envlist }}"
|
tox_envlist: "{{ tox_envlist }}"
|
||||||
tox_constraints_file: "{{ tox_constraints_file | default(omit) }}"
|
tox_constraints_file: "{{ tox_constraints_file | default(omit) }}"
|
||||||
project_dir: "{{ zuul_work_dir }}"
|
project_dir: "{{ zuul_work_dir }}"
|
||||||
projects: "{{ zuul._projects.values() | selectattr('required') | list }}"
|
projects: "{{ zuul.projects.values() | selectattr('required') | list }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user