Merge "ALso allow release files with .yml ending"

This commit is contained in:
Jenkins 2016-07-08 14:04:57 +00:00 committed by Gerrit Code Review
commit 942c449009
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ def main():
releases_yaml_dir = os.path.join(args['releases-git-dir'], 'deliverables',
args['release'])
for yaml_file in os.listdir(releases_yaml_dir):
project_name = re.sub('.yaml$', '', yaml_file)
project_name = re.sub('\.ya?ml$', '', yaml_file)
# skip projects if include list is given
if len(args['include_projects']) and \
project_name not in args['include_projects']: