Rename 'repos' job attribute to 'required-projects'
The name 'repos' is not clear, especially since we have removed most other occurences of that word. It's not obvious that the values should be names of Zuul projects. We might simply use 'projects' instead, but there is a concern that users may see that as saying this job should *run on* these projects (ie, as a replacement for the project-pipeline configuration). Hopefully 'required-projects' indicates that the job utilizes the projects in the list. Change-Id: I43af7a7f688f1368514427a2892a03d1cf46fe72
This commit is contained in:
@@ -300,8 +300,8 @@ class ExecutorClient(object):
|
||||
override_branch=override_branch,
|
||||
default_branch=project_default_branch)
|
||||
|
||||
if job.repos:
|
||||
for job_project in job.repos.values():
|
||||
if job.required_projects:
|
||||
for job_project in job.required_projects.values():
|
||||
(trusted, project) = tenant.getProject(
|
||||
job_project.project_name)
|
||||
if project is None:
|
||||
|
||||
Reference in New Issue
Block a user