Browse Source

Remove zuul._projects

This variable has been transitioned to zuul.projects in the dependent
changes, so is no longer required.

Depends-On: Ib71241a862cf29f6e542dc1d4a2c5cd554d5d7d8
Depends-On: I1408a15d4da274f3fc911f03d5572f4818bc4ebb
Change-Id: I283e66293110aa3bc99acb1cbc6eb3e0cc11f750
changes/18/535518/2
Ian Wienand 5 years ago
parent
commit
e82f5eba15
  1. 8
      doc/source/user/jobs.rst
  2. 6
      zuul/executor/client.py
  3. 2
      zuul/executor/server.py

8
doc/source/user/jobs.rst

@ -281,14 +281,6 @@ of item.
msg: "Project {{ item.name }} is at {{ item.src_dir }}
with_items: {{ zuul.projects.values() | list }}
.. var:: _projects
:type: dict
The same as ``projects`` but a dictionary indexed by the
``name`` value of each entry. ``projects`` will be converted to
this.
.. var:: tenant
The name of the current Zuul tenant.

6
zuul/executor/client.py

@ -262,12 +262,6 @@ class ExecutorClient(object):
src_dir=os.path.join('src', p.canonical_name),
required=(p in required_projects),
))
# We are transitioning "projects" from a list to a dict
# indexed by canonical name, as it is much easier to access
# values in ansible. Existing callers have been converted to
# "_projects" and "projects" is swapped; we will convert users
# back to "projects" and remove this soon.
zuul_params['_projects'] = zuul_params['projects']
build = Build(job, uuid)
build.parameters = params

2
zuul/executor/server.py

@ -713,7 +713,7 @@ class AnsibleJob(object):
project['default_branch'])
# Update the inventory variables to indicate the ref we
# checked out
p = args['zuul']['_projects'][project['canonical_name']]
p = args['zuul']['projects'][project['canonical_name']]
p['checkout'] = selected
# Delete the origin remote from each repo we set up since
# it will not be valid within the jobs.

Loading…
Cancel
Save