Merge "Stop spamming ansible/ansible"

This commit is contained in:
Zuul 2018-01-25 20:20:03 +00:00 committed by Gerrit Code Review
commit ba4e169e53
2 changed files with 7 additions and 3 deletions

View File

@ -31,6 +31,10 @@ def check_system_templates():
print("=====================================")
for entry in projects:
project = entry['project']
# TODO(mordred) Generalize this, but for now, avoid doing this check
# on ansible.
if project['name'] == 'ansible/ansible':
continue
try:
correct = False
for template in project['templates']:
@ -94,7 +98,7 @@ def check_release_jobs():
for entry in projects:
project = entry['project']
name = project['name']
found = [tmpl for tmpl in project['templates']
found = [tmpl for tmpl in project.get('templates', [])
if tmpl in release_templates]
if len(found) > 1:
errors = True

View File

@ -3,8 +3,8 @@
- project:
name: ansible/ansible
templates:
- system-required
# ansible/ansible does not include system-required on purpose. We do not
# gate ansible/ansible and we should NOT be doing merge-check on it.
check:
jobs:
- shade-ansible-devel-functional-devstack: