adjust zuul_work_dir determination for cross-jobs

zuul.projects was changed from a list to a dict recently,
so we need to adjust to a different way of finding
the zuul_work_dir

Change-Id: If2c3042ce5bc10a9d02decef34abdad65a53f5f8
This commit is contained in:
Dirk Mueller 2017-12-09 22:40:31 +01:00 committed by Matthew Thode
parent 850f4abc1b
commit 3fb20ab653
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -13,7 +13,7 @@
Use the specified tox environments (``ALL`` selects all).
vars:
zuul_work_dir: "{{ (zuul.projects | selectattr('required') | selectattr('name', 'match', '^(?!openstack/requirements)') | list)[0].src_dir }}"
zuul_work_dir: "{{ (zuul.projects.values() | selectattr('required') | selectattr('name', 'match', '^(?!openstack/requirements)') | list)[0].src_dir }}"
# NOTE(jeblair): temporarily disabled tox_siblings until the fix
# in https://review.openstack.org/514058 lands.
tox_install_siblings: false