Check for jobs without attributes in Zuul layout.yaml

This check ensures jobs are not defined without attributes in the jobs
section of Zuul layout.yaml

Change-Id: Id81d2272b0a0c4546197e2ab0f992f46a259de77
This commit is contained in:
Mathieu Gagné 2016-08-30 17:28:43 -04:00
parent e505ee913c
commit 862bd57be4
2 changed files with 3 additions and 2 deletions

View File

@ -128,6 +128,9 @@ def check_jobs():
if not found:
print ("Regex %s has no matches in job list" % jobs['name'])
errors = True
if len(jobs.keys()) == 1:
print ("Job %s has no attributes in job list" % jobs['name'])
errors = True
return errors

View File

@ -2809,8 +2809,6 @@ jobs:
branch: ^(?!stable/liberty).*$
voting: false
- name: ^gate-tempest-dsvm-full-ceph-plugin-src-.*$
- name: ^gate-tempest-dsvm-smoke-tlsproxy.*$
voting: false