Always use on-disk openstack service git repos in CI jobs
This is not dependant on if we are running a regular or an upgrade job. Move the code to a more logical location. Change-Id: Ibdb29a679504ce30bcdc7591b8e68c054dbea580
This commit is contained in:
parent
997b0d78d9
commit
5910a88c95
@ -97,15 +97,10 @@
|
|||||||
path: "{{ config_dir }}"
|
path: "{{ config_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create override for zuul git server to local repos
|
|
||||||
copy:
|
|
||||||
content: |
|
|
||||||
openstack_opendev_base_url: "file:///openstack/src/opendev.org"
|
|
||||||
dest: "{{ config_dir }}/user_variables_zuulrepos.yml"
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- "lookup('env', 'ZUUL_SRC_PATH') != ''"
|
- "lookup('env', 'ZUUL_SRC_PATH') != ''"
|
||||||
- "lookup('env', 'UPGRADE_TARGET_BRANCH') == ''"
|
- "lookup('env', 'UPGRADE_TARGET_BRANCH') == ''"
|
||||||
|
|
||||||
- name: Generate a list of user overridden roles
|
- name: Generate a list of user overridden roles
|
||||||
set_fact:
|
set_fact:
|
||||||
user_overridden_roles: "{{ user_roles | json_query('[*].name') }}"
|
user_overridden_roles: "{{ user_roles | json_query('[*].name') }}"
|
||||||
|
@ -71,11 +71,20 @@
|
|||||||
|
|
||||||
# Symlink host repos to /openstack/src to match the lxc continer bind mount
|
# Symlink host repos to /openstack/src to match the lxc continer bind mount
|
||||||
# NOTE(jrosser) this must happen *after* prepare_data_disk as /openstack may remounted
|
# NOTE(jrosser) this must happen *after* prepare_data_disk as /openstack may remounted
|
||||||
- name: Symlink /openstack/src to /home/zuul/src
|
- name: Use on-disk repos for openstack services in CI
|
||||||
file:
|
block:
|
||||||
src: "{{ lookup('env', 'ZUUL_SRC_PATH') }}"
|
- name: Symlink /openstack/src to /home/zuul/src
|
||||||
dest: '/openstack/src'
|
file:
|
||||||
state: link
|
src: "{{ lookup('env', 'ZUUL_SRC_PATH') }}"
|
||||||
|
dest: '/openstack/src'
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Create override for zuul git server to local repos
|
||||||
|
copy:
|
||||||
|
content: |
|
||||||
|
openstack_opendev_base_url: "file:///openstack/src/opendev.org"
|
||||||
|
dest: "/etc/openstack_deploy/user_variables_zuulrepos.yml"
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- "lookup('env', 'ZUUL_SRC_PATH') | length > 0"
|
- "lookup('env', 'ZUUL_SRC_PATH') | length > 0"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user