Merge "scm svn: add support for viewvc-url"

This commit is contained in:
Jenkins 2015-07-26 16:28:47 +00:00 committed by Gerrit Code Review
commit d7add10803
3 changed files with 9 additions and 0 deletions

View File

@ -584,6 +584,7 @@ def svn(parser, xml_parent, data):
and exclusion patterns for displaying changelog entries as it does for
polling for changes (default false)
:arg list repos: list of repositories to checkout (optional)
:arg str viewvc-url: URL of the svn web interface (optional)
:Repo: * **url** (`str`) -- URL for the repository
* **basedir** (`str`) -- Location relative to the workspace
@ -610,6 +611,10 @@ def svn(parser, xml_parent, data):
"""
scm = XML.SubElement(xml_parent, 'scm', {'class':
'hudson.scm.SubversionSCM'})
if 'viewvc-url' in data:
browser = XML.SubElement(
scm, 'browser', {'class': 'hudson.scm.browsers.ViewSVN'})
XML.SubElement(browser, 'url').text = data['viewvc-url']
locations = XML.SubElement(scm, 'locations')
def populate_repo_xml(parent, data):

View File

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<scm class="hudson.scm.SubversionSCM">
<browser class="hudson.scm.browsers.ViewSVN">
<url>http://svn.apache.org/viewvc/spamassassin/trunk</url>
</browser>
<locations>
<hudson.scm.SubversionSCM_-ModuleLocation>
<remote>http://svn.apache.org/repos/asf/spamassassin/trunk</remote>

View File

@ -20,3 +20,4 @@ scm:
exclusion-revprop-name: propname
filter-changelog: true
ignore-property-changes-on-directories: true
viewvc-url: http://svn.apache.org/viewvc/spamassassin/trunk