Use more exact path to Zuul source dir

Be more specific when specifying path to source of the project,
so that we can run these jobs on different projects and
dependencies.
Add these paths to some of molecule jobs to test.
Change-Id: I09f7b29eb37d5c728d97dd4f27b4465fa0fb26f2
This commit is contained in:
Sagi Shnaidman 2019-11-12 20:53:41 +02:00
parent 6abb442d79
commit c7da2d2f4a
3 changed files with 3 additions and 2 deletions

View File

@ -132,6 +132,7 @@
- ^role-addition.yml
- ^tox.ini
- ^molecule-requirements.txt
- ^zuul.d/playbooks/*.yml
name: tripleo-ansible-centos-7-role-addition
nodeset: centos-7
parent: tox-molecule

View File

@ -4,7 +4,7 @@
pre_tasks:
- name: Set project path fact
set_fact:
tripleo_ansible_project_path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
tripleo_ansible_project_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/tripleo-ansible'].src_dir }}"
- name: Set action plugin path fact
set_fact:

View File

@ -7,7 +7,7 @@
- name: Set project path fact
set_fact:
tripleo_ansible_project_path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
tripleo_ansible_project_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/tripleo-ansible'].src_dir }}"
- name: Set role or plugin path fact
set_fact: