Commit Graph

8 Commits

Author SHA1 Message Date
Tobias Henkel cd9827e664
Manage ansible installations within zuul
As a first step towards supporting multiple ansible versions we need
tooling to manage ansible installations. This moves the installation
of ansible from the requirements.txt into zuul. This is called as a
setup hook to install the ansible versions into
<prefix>/lib/zuul/ansible. Further this tooling abstracts knowledge
that the executor must know in order to actually run the correct
version of ansible.

The actual usage of multiple ansible versions will be done in
follow-ups.

For better maintainability the ansible plugins live in
zuul/ansible/base where plugins can be kept in different versions if
necessary. For each supported ansible version there is a specific
folder that symlinks the according plugins.

Change-Id: I5ce1385245c76818777aa34230786a9dbaf723e5
Depends-On: https://review.openstack.org/623927
2019-03-15 09:09:16 +01:00
Tristan Cacqueray 228350138f
Add missing __init__.py files
Rpm %install step skip those directory when those files are missing.
Otherwise those directories need to be added as package data.

Change-Id: Ied017ab576d67559cd2c19e4c37c1f3e4ec5183f
2018-06-15 09:35:42 -05:00
Jeremy Stanley 2f1059e5c1 Be explicit about legacy var additions/omissions
Behavior changes between v2 environment variables and the v3
zuul_legavy_vars filter may cause regressions in some translated
jobs, so be very explicit about which variables were intentionally
omitted, which variables are completely new, and which variables are
now appearing in pipelines they did not previously.

Change-Id: Idf032f9903b21e383a733ab9ff1a6ec80f636e4a
2017-10-17 18:28:43 +00:00
Javier Pena 67ccf41eb9 Fix ref calculation for ZUUL_CHANGES legacy var
We need the last 2 digits from the change number to define XX in
refs/changes/XX/512270/2. Currently, we get everything but those
last two digits.

Change-Id: I84ebe2d048574e07e3eb838379c10854d775f131
2017-10-16 18:42:21 +02:00
Monty Taylor ebf3e0ad07
Only add BUILD_TIMEOUT if there is a timeout
Change-Id: I60daa67e7154d2bf621305e0e0aa6f4db49033c1
2017-09-28 15:35:41 -05:00
Monty Taylor 85731f1291
Set BUILD_TIMEOUT environment variable in zuul_legacy_vars
Jobs that need this expect it as an environment variable.

Update the migration script in case it gets used again.

Change-Id: Ic4d372a795e17a33116d19e9e4603fb5a08fe152
2017-09-28 13:26:55 -05:00
Monty Taylor 5d7d2c6439
Put legacy jobs down a directory level into workspace
Change-Id: I39f13d615cdf117aae00e0fe30c281c5fb01c1fd
2017-09-27 08:11:21 -05:00
James E. Blair a6a4555896
Add zuul legacy vars filter
Change-Id: I087bd0de3356a8606fe40d4762e620e4d465a719
2017-09-14 14:05:21 -06:00