Class MercurialBrowserSCMSourceTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
hudson.plugins.mercurial.traits.MercurialBrowserSCMSourceTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

public class MercurialBrowserSCMSourceTrait extends jenkins.scm.api.trait.SCMSourceTrait
Exposes HgBrowser configuration of a MercurialSCMSource as a SCMSourceTrait.
Since:
2.0
  • Constructor Details

    • MercurialBrowserSCMSourceTrait

      @DataBoundConstructor public MercurialBrowserSCMSourceTrait(@CheckForNull HgBrowser browser)
      Stapler constructor.
      Parameters:
      browser - the HgBrowser or null to use the "auto" browser.
  • Method Details

    • getBrowser

      @CheckForNull public HgBrowser getBrowser()
      Gets the HgBrowser..
      Returns:
      the HgBrowser or null to use the "auto" browser.
    • decorateBuilder

      protected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
      Overrides:
      decorateBuilder in class jenkins.scm.api.trait.SCMSourceTrait