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:
Attila Darazs 2016-11-22 18:22:42 +01:00
parent 4b7dc9378b
commit ef95a6bb6c
2 changed files with 5 additions and 2 deletions

View File

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

View File

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