Fix and optimize the gate-quickstart role
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
This commit is contained in:
parent
4b7dc9378b
commit
ef95a6bb6c
@ -9,8 +9,11 @@
|
||||
dest: '{{ lookup("env", "WORKSPACE") }}/{{ gated_project_name }}'
|
||||
refspec: '{{ gated_change.refspec }}'
|
||||
version: 'FETCH_HEAD'
|
||||
# do not check out the gated change if it was already cloned by the jenkins job
|
||||
when: gated_change.project != "{{ lookup('env', 'GERRIT_PROJECT') }}"
|
||||
|
||||
- when: gated_project_name != "tripleo-quickstart"
|
||||
# do this only for the roles
|
||||
- when: gated_change.project != "openstack/tripleo-quickstart"
|
||||
block:
|
||||
- name: Modify requirements
|
||||
replace:
|
||||
|
@ -12,4 +12,4 @@
|
||||
- name: Check out the specific changes
|
||||
include: checkout.yml gated_change={{ item }}
|
||||
with_items: '{{ artg_change_list }}'
|
||||
when: item.project in gated_projects and item.project != "{{ lookup('env', 'GERRIT_PROJECT') }}"
|
||||
when: item.project in gated_projects
|
||||
|
Loading…
x
Reference in New Issue
Block a user