public abstract class BranchBuildStrategy extends AbstractDescribableImpl<BranchBuildStrategy> implements ExtensionPoint
SCMHead should be automatically built when
discovered.
Methods marked as SPI: are intended to be implemented by implementers of BranchBuildStrategy.
Methods marked as API: are intended to be invoked consumers of BranchBuildStrategy.
A consumer invoking a SPI: method may get a UnsupportedOperationException.
Methods marked as SPI: are only to be invoked through the API methods in order to allow safe evolution.
Changing the API may require updating any SPI implementations that are also API consumers, specifically the Any,
All and None implementations in basic-branch-build-strategies
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
BranchBuildStrategy() |
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.ProtectedExternally.class) public boolean isAutomaticBuild(@NonNull jenkins.scm.api.SCMSource source, @NonNull jenkins.scm.api.SCMHead head)
automaticBuild(SCMSource, SCMHead, SCMRevision, SCMRevision)@Deprecated @Restricted(value=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 revision)
automaticBuild(SCMSource, SCMHead, SCMRevision, SCMRevision)SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadrevision - the SCMRevisiontrue if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.@Deprecated @Restricted(value=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 prevRevision)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the head is now atprevRevision - the SCMRevision that the head was last seen at or null if this is a newly
discovered head. Care should be taken to consider the case of non
SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two
are equal.true if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.@Deprecated @Restricted(value=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 prevRevision, @NonNull TaskListener listener)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the head is now atprevRevision - the SCMRevision that the head was last seen at or null if this is a newly
discovered head. Care should be taken to consider the case of non
SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two
are equal.listener - the TaskListener that can be used for outputting any rational for the decisiontrue if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.@Restricted(value=org.kohsuke.accmod.restrictions.ProtectedExternally.class)
public abstract 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)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the build head is now atlastBuiltRevision - the SCMRevision that the build head was last seen at or null if this is a newly
discovered head. It replaces prevRevision from the previous SPI version. Care should be taken to consider
the case of non SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two are equal.lastSeenRevision - the SCMRevision that the head was last seenlistener - the TaskListener that can be used for outputting any rational for the decisiontrue if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.public final boolean automaticBuild(@NonNull
jenkins.scm.api.SCMSource source,
@NonNull
jenkins.scm.api.SCMHead head,
@NonNull
jenkins.scm.api.SCMRevision currRevision,
@CheckForNull
jenkins.scm.api.SCMRevision prevRevision)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the head is now atprevRevision - the SCMRevision that the head was last seen at or null if this is a newly
discovered head. Care should be taken to consider the case of non
SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two
are equal.true if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.public final boolean automaticBuild(@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 listener)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the head is now atprevRevision - the SCMRevision that the head was last seen at or null if this is a newly
discovered head. Care should be taken to consider the case of non
SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two
are equal.true if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.public final boolean automaticBuild(@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)
SCMRevision of the SCMHead for the specified SCMSource be
triggered when the SCMHead has been detected as created / modified?source - the SCMSourcehead - the SCMHeadcurrRevision - the SCMRevision that the head is now atlastBuiltRevision - the SCMRevision that the build head was last seen at or null if this is a newly
discovered head. Care should be taken to consider the case of non
SCMRevision.isDeterministic() previous revisions as polling for changes will have
confirmed that there is a change between this and currRevision even if the two
are equal.lastSeenRevision - the SCMRevision that the head was last seentrue if and only if the SCMRevision should be automatically built when the
SCMHead has been detected as created / modified.public BranchBuildStrategyDescriptor getDescriptor()
getDescriptor in interface Describable<BranchBuildStrategy>getDescriptor in class AbstractDescribableImpl<BranchBuildStrategy>Copyright © 2016–2019. All rights reserved.