Skip to content

Add svn repository browser support - #1241

Open
didiez wants to merge 2 commits into
jenkinsci:masterfrom
didiez:scm-svn-browser-support
Open

Add svn repository browser support#1241
didiez wants to merge 2 commits into
jenkinsci:masterfrom
didiez:scm-svn-browser-support

Conversation

@didiez

@didiez didiez commented Oct 3, 2021

Copy link
Copy Markdown

Added a high-level DSL option to configure a repository browser for svn SCM.
To this day, a svn browser could only be configured modifying the underlying XML with a configure block.

svn {
    location('https://svn.didiez.es/')
    configure { scmNode ->
        scmNode / browser(class: 'hudson.scm.browsers.WebSVN') {
            url('https://didiez.es/websvn/')
        }
    }
}

Usage example:

New high-level DSL:

svn {
    location('https://svn.didiez.es/')
    browser {
        webSVN('https://didiez.es/websvn/')
    }
}

or with Dynamic DSL:

svn {
    location('https://svn.didiez.es/')
    browser {
        webSVN {
            url('https://didiez.es/websvn/')
        }
    }
}

@basil basil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Dynamic DSL not work here? If not, could it be made to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants