Class BranchSource

All Implemented Interfaces:
Describable<BranchSource>

@ExportedBean public class BranchSource extends AbstractDescribableImpl<BranchSource>
A source of branches, which consists of a source and a strategy for creating properties of the branches from this source.
Author:
Stephen Connolly
  • Constructor Details

    • BranchSource

      @DataBoundConstructor public BranchSource(jenkins.scm.api.SCMSource source)
    • BranchSource

      @Deprecated public BranchSource(jenkins.scm.api.SCMSource source, BranchPropertyStrategy strategy)
      Deprecated.
  • Method Details

    • getSource

      @Exported @NonNull public jenkins.scm.api.SCMSource getSource()
      Gets the source.
      Returns:
      the source.
    • getStrategy

      public BranchPropertyStrategy getStrategy()
      Gets the strategy.
      Returns:
      the strategy.
    • setStrategy

      @DataBoundSetter public void setStrategy(BranchPropertyStrategy strategy)
    • getBuildStrategies

      @NonNull public List<BranchBuildStrategy> getBuildStrategies()
      Gets the rules for automatic building of branches to apply on this source.
      Returns:
      the rules for automatic building of branches to apply on this source.
      Since:
      2.0.0
    • setBuildStrategies

      @DataBoundSetter public void setBuildStrategies(@CheckForNull List<BranchBuildStrategy> buildStrategies)
      Gets the rules for automatic building of branches to apply on this source.
      Parameters:
      buildStrategies - the rules for automatic building of branches to apply on this source.
      Since:
      2.0.0