Add the ability to trigger the integrated build
This adds the ability to trigger an AIO build from outside the openstack-ansible repo. Change-Id: I3fcf42597a6f0a8d8b5fa7bc99874874939d21ea
This commit is contained in:
parent
1ab7a86b39
commit
13ed290f13
@ -1,11 +1,23 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Set current test repo (cross-repo)
|
||||||
|
set_fact:
|
||||||
|
current_test_repo: "git.openstack.org/{{ osa_test_repo }}"
|
||||||
|
when:
|
||||||
|
- osa_test_repo is defined
|
||||||
|
|
||||||
|
- name: Set current test repo (non-cross-repo)
|
||||||
|
set_fact:
|
||||||
|
current_test_repo: "{{ zuul.project.canonical_name }}"
|
||||||
|
when:
|
||||||
|
- osa_test_repo is not defined
|
||||||
|
|
||||||
- name: Run gate-check-commit.sh script
|
- name: Run gate-check-commit.sh script
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
command: "scripts/gate-check-commit.sh {{ scenario }} {{ action }}"
|
command: "scripts/gate-check-commit.sh {{ scenario }} {{ action }}"
|
||||||
args:
|
args:
|
||||||
chdir: "src/{{ zuul.project.canonical_name }}"
|
chdir: "src/{{ current_test_repo }}"
|
||||||
environment:
|
environment:
|
||||||
# ZUUL_PROJECT is used by tests/get-ansible-role-requirements to
|
# ZUUL_PROJECT is used by tests/get-ansible-role-requirements to
|
||||||
# determine when CI provided repos should be used.
|
# determine when CI provided repos should be used.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user