Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add svn repository browser support #1241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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