Merge "Fix indent of git for scm"

This commit is contained in:
Zuul 2018-06-17 14:53:34 +00:00 committed by Gerrit Code Review
commit ea7a61412d
1 changed files with 21 additions and 19 deletions

View File

@ -454,7 +454,8 @@ def git(registry, xml_parent, data):
XML.SubElement(exts_node, impl_prefix + 'AuthorInChangelog')
browser = data.get('browser', 'auto')
browserdict = {'auto': 'auto',
browserdict = {
'auto': 'auto',
'assemblaweb': 'AssemblaWeb',
'bitbucketweb': 'BitbucketWeb',
'cgit': 'CGit',
@ -472,7 +473,8 @@ def git(registry, xml_parent, data):
'redmineweb': 'RedmineWeb',
'rhodecode': 'RhodeCode',
'stash': 'Stash',
'viewgit': 'ViewGitWeb'}
'viewgit': 'ViewGitWeb',
}
if browser not in browserdict:
valid = sorted(browserdict.keys())
raise JenkinsJobsException("Browser entered is not valid must be one "