Class ChangeRequestBuildStrategyImpl

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.BranchBuildStrategy>
jenkins.branch.BranchBuildStrategy
jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.branch.BranchBuildStrategy>

public class ChangeRequestBuildStrategyImpl extends jenkins.branch.BranchBuildStrategy
A BranchBuildStrategy that builds change requests.
Since:
1.0.0
  • Constructor Details

    • ChangeRequestBuildStrategyImpl

      @Deprecated public ChangeRequestBuildStrategyImpl(boolean ignoreTargetOnlyChanges)
      Our constructor.
      Parameters:
      ignoreTargetOnlyChanges - true to ignore merge revision changes where the only difference is the target branch revision.
      Since:
      1.2.0
    • ChangeRequestBuildStrategyImpl

      @DataBoundConstructor public ChangeRequestBuildStrategyImpl(boolean ignoreTargetOnlyChanges, boolean ignoreUntrustedChanges)
      Our constructor.
      Parameters:
      ignoreTargetOnlyChanges - true to ignore merge revision changes where the only difference is the target branch revision.
      ignoreUntrustedChanges - true to check the trusted revision and ignore if different, which would have the effect of ignoring change requests that originate from an untrusted source.
  • Method Details

    • isIgnoreTargetOnlyChanges

      public boolean isIgnoreTargetOnlyChanges()
    • isIgnoreUntrustedChanges

      public boolean isIgnoreUntrustedChanges()
    • isAutomaticBuild

      @Deprecated public boolean isAutomaticBuild(@NonNull jenkins.scm.api.SCMSource source, @NonNull jenkins.scm.api.SCMHead head, @NonNull jenkins.scm.api.SCMRevision currRevision, @CheckForNull jenkins.scm.api.SCMRevision prevRevision)
      Deprecated.
      Overrides:
      isAutomaticBuild in class jenkins.branch.BranchBuildStrategy
    • isAutomaticBuild

      @Restricted(org.kohsuke.accmod.restrictions.ProtectedExternally.class) @Deprecated public boolean isAutomaticBuild(@NonNull jenkins.scm.api.SCMSource source, @NonNull jenkins.scm.api.SCMHead head, @NonNull jenkins.scm.api.SCMRevision currRevision, @CheckForNull jenkins.scm.api.SCMRevision prevRevision, @NonNull TaskListener taskListener)
      Deprecated.
      Overrides:
      isAutomaticBuild in class jenkins.branch.BranchBuildStrategy
    • isAutomaticBuild

      @Restricted(org.kohsuke.accmod.restrictions.ProtectedExternally.class) public boolean isAutomaticBuild(@NonNull jenkins.scm.api.SCMSource source, @NonNull jenkins.scm.api.SCMHead head, @NonNull jenkins.scm.api.SCMRevision currRevision, @CheckForNull jenkins.scm.api.SCMRevision lastBuiltRevision, @CheckForNull jenkins.scm.api.SCMRevision lastSeenRevision, @NonNull TaskListener listener)
      Specified by:
      isAutomaticBuild in class jenkins.branch.BranchBuildStrategy
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object