Merge "Prepare build-test role for usage in upstream"
This commit is contained in:
commit
1672d78db1
|
@ -32,6 +32,8 @@ def process(host, changes):
|
||||||
|
|
||||||
for item in changes.split("^"):
|
for item in changes.split("^"):
|
||||||
params = item.split(":")
|
params = item.split(":")
|
||||||
|
if params[0] in [i['project'] for i in output]:
|
||||||
|
continue
|
||||||
output.append({"host": host,
|
output.append({"host": host,
|
||||||
"project": params[0],
|
"project": params[0],
|
||||||
"branch": params[1],
|
"branch": params[1],
|
||||||
|
|
|
@ -54,3 +54,4 @@
|
||||||
done;
|
done;
|
||||||
args:
|
args:
|
||||||
chdir: '{{ ansible_user_dir }}/DLRN'
|
chdir: '{{ ansible_user_dir }}/DLRN'
|
||||||
|
register: repo_built
|
||||||
|
|
|
@ -74,15 +74,16 @@
|
||||||
|
|
||||||
- name: Parse Zuul changes
|
- name: Parse Zuul changes
|
||||||
zuul_deps:
|
zuul_deps:
|
||||||
host: "{{ lookup('env', 'ZUUL_HOST') }}"
|
host: "{{ lookup('env', 'ZUUL_HOST')|default('review.openstack.org', true) }}"
|
||||||
changes: "{{ lookup('env', 'ZUUL_CHANGES') }}"
|
changes: "{{ lookup('env', 'ZUUL_CHANGES') }}"
|
||||||
when: artg_change_list is not defined and "{{ lookup('env', 'ZUUL_HOST') }}" != ""
|
when: artg_change_list is not defined and "{{ lookup('env', 'ZUUL_CHANGES') }}" != ""
|
||||||
|
|
||||||
- name: Clone and build the specific DLRN projects
|
- name: Clone and build the specific DLRN projects
|
||||||
include: dlrn-build.yml artg_change={{ item }}
|
include: dlrn-build.yml artg_change={{ item }}
|
||||||
with_items: '{{ artg_change_list }}'
|
with_items: '{{ artg_change_list|default([]) }}'
|
||||||
when: item.project not in artg_skipped_projects
|
when: item.project not in artg_skipped_projects
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: Create a directory to hold the rpms
|
- name: Create a directory to hold the rpms
|
||||||
file:
|
file:
|
||||||
path: '{{ ansible_user_dir }}/gating_repo'
|
path: '{{ ansible_user_dir }}/gating_repo'
|
||||||
|
@ -102,6 +103,7 @@
|
||||||
shell: 'tar czf {{ artg_compressed_gating_repo }} gating_repo'
|
shell: 'tar czf {{ artg_compressed_gating_repo }} gating_repo'
|
||||||
args:
|
args:
|
||||||
chdir: '{{ ansible_user_dir }}'
|
chdir: '{{ ansible_user_dir }}'
|
||||||
|
when: repo_built is defined
|
||||||
|
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
file:
|
file:
|
||||||
|
@ -119,3 +121,4 @@
|
||||||
|
|
||||||
- name: Trigger repo injection for quickstart
|
- name: Trigger repo injection for quickstart
|
||||||
set_fact: compressed_gating_repo={{ artg_compressed_gating_repo }}
|
set_fact: compressed_gating_repo={{ artg_compressed_gating_repo }}
|
||||||
|
when: repo_built is defined
|
||||||
|
|
Loading…
Reference in New Issue