Merge "CI: use openstacksdk from source if it's cloned"

This commit is contained in:
Zuul 2022-07-18 16:36:44 +00:00 committed by Gerrit Code Review
commit 03b1bbc0b3

View File

@ -15,11 +15,20 @@
- name: "Set testing to true"
set_fact:
testing: true
- name: "Set variables if running in the CI"
set_fact:
cirros_deploy_image_upstream_url: file:///opt/cache/files/cirros-0.5.1-x86_64-disk.img
copy_from_local_path: true
git_url_root: "{{ lookup('env', 'WORKSPACE') }}"
- block:
- name: "Set variables if running in the CI"
set_fact:
cirros_deploy_image_upstream_url: file:///opt/cache/files/cirros-0.5.1-x86_64-disk.img
copy_from_local_path: true
git_url_root: "{{ lookup('env', 'WORKSPACE') }}"
- name: "Check if openstacksdk is cloned"
stat:
path: "{{ git_url_root }}/openstack/openstacksdk"
register: sdk_path
- name: "Use openstacksdk from source if it's cloned"
set_fact:
openstacksdk_source_install: true
when: sdk_path.stat.exists
when: lookup('env', 'ZUUL_BRANCH') | length > 0
- import_playbook: install.yaml