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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionChangeRequestBuildStrategyImpl
(boolean ignoreTargetOnlyChanges) Deprecated.ChangeRequestBuildStrategyImpl
(boolean ignoreTargetOnlyChanges, boolean ignoreUntrustedChanges) Our constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
isAutomaticBuild
(jenkins.scm.api.SCMSource source, jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision currRevision, jenkins.scm.api.SCMRevision prevRevision) Deprecated.boolean
isAutomaticBuild
(jenkins.scm.api.SCMSource source, jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision currRevision, jenkins.scm.api.SCMRevision prevRevision, TaskListener taskListener) Deprecated.boolean
isAutomaticBuild
(jenkins.scm.api.SCMSource source, jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision currRevision, jenkins.scm.api.SCMRevision lastBuiltRevision, jenkins.scm.api.SCMRevision lastSeenRevision, TaskListener listener) boolean
boolean
toString()
Methods inherited from class jenkins.branch.BranchBuildStrategy
automaticBuild, automaticBuild, automaticBuild, getDescriptor, isAutomaticBuild, isAutomaticBuild
-
Constructor Details
-
ChangeRequestBuildStrategyImpl
Deprecated.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 classjenkins.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 classjenkins.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 classjenkins.branch.BranchBuildStrategy
-
equals
-
hashCode
public int hashCode() -
toString
-
ChangeRequestBuildStrategyImpl(boolean, boolean)