Skip to content

Conversation

@didiez
Copy link

@didiez didiez commented Oct 3, 2021

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/')
        }
    }
}

Copy link
Member

@basil basil left a comment

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