ef95a6bb6c
Previously the role would not check out the role changes when running directly on the extras-gate. Also avoid fetching changes that are already checked out by Jenkins. Change-Id: I8b9b9a65bdac7a55fc31e43c5054c6c027dc1bf5
16 lines
652 B
YAML
16 lines
652 B
YAML
---
|
|
# This playbooks is responsible for gating quickstart and the extra roles
|
|
# together with optional dependencies between them.
|
|
- name: Parse Jenkins changes
|
|
jenkins_deps:
|
|
host: "{{ lookup('env', 'GERRIT_HOST') }}"
|
|
change_id: "{{ lookup('env', 'GERRIT_CHANGE_ID') }}"
|
|
branch: "{{ lookup('env', 'GERRIT_BRANCH') }}"
|
|
patchset_rev: "{{ lookup('env', 'GERRIT_PATCHSET_REVISION') }}"
|
|
when: artg_change_list is not defined and "{{ lookup('env', 'GERRIT_HOST') }}" != ""
|
|
|
|
- name: Check out the specific changes
|
|
include: checkout.yml gated_change={{ item }}
|
|
with_items: '{{ artg_change_list }}'
|
|
when: item.project in gated_projects
|