Package hudson.plugins.mercurial
Class MercurialSCMSource
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
hudson.plugins.mercurial.MercurialSCMSource
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.SCMSource>
public final class MercurialSCMSource
extends jenkins.scm.api.SCMSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN
-
Constructor Summary
ConstructorsConstructorDescriptionMercurialSCMSource
(String source) MercurialSCMSource
(String id, String source) Deprecated.MercurialSCMSource
(String id, String installation, String source, String credentialsId, String branchPattern, String modules, String subdir, HgBrowser browser, boolean clean) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected void
decorate
(MercurialSCMBuilder<?> builder) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.List<jenkins.scm.api.trait.SCMSourceTrait>
boolean
isClean()
Deprecated.protected MercurialSCMBuilder<?>
newBuilder
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected jenkins.scm.api.SCMRevision
retrieve
(String thingName, TaskListener listener, Item context) protected void
retrieve
(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) retrieveActions
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) void
setCredentialsId
(String credentialsId) void
Methods inherited from class jenkins.scm.api.SCMSource
afterSave, build, canProbe, checkInterrupt, createProbe, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTrustedRevision, hashCode, hasId, isCategoryEnabled, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveActions, retrieveRevisions, retrieveRevisions, setId, setOwner, toString, withId
-
Constructor Details
-
MercurialSCMSource
-
MercurialSCMSource
Deprecated. -
MercurialSCMSource
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.0") public MercurialSCMSource(String id, String installation, String source, String credentialsId, String branchPattern, String modules, String subdir, HgBrowser browser, boolean clean) Deprecated.
-
-
Method Details
-
getSource
-
getTraits
- Overrides:
getTraits
in classjenkins.scm.api.SCMSource
-
getCredentialsId
-
setCredentialsId
-
setTraits
@DataBoundSetter public void setTraits(@CheckForNull List<jenkins.scm.api.trait.SCMSourceTrait> traits) - Overrides:
setTraits
in classjenkins.scm.api.SCMSource
-
getInstallation
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public String getInstallation()Deprecated. -
getBranchPattern
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public String getBranchPattern()Deprecated. -
getModules
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public String getModules()Deprecated. -
getSubdir
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public String getSubdir()Deprecated. -
getBrowser
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public HgBrowser getBrowser()Deprecated. -
isClean
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.0") public boolean isClean()Deprecated. -
retrieve
protected void retrieve(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer, @CheckForNull jenkins.scm.api.SCMHeadEvent<?> event, @NonNull TaskListener listener) throws IOException, InterruptedException - Specified by:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieve
@CheckForNull protected jenkins.scm.api.SCMRevision retrieve(@NonNull String thingName, @NonNull TaskListener listener, @CheckForNull Item context) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
newBuilder
@NonNull protected MercurialSCMBuilder<?> newBuilder(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) -
decorate
-
build
@NonNull public SCM build(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) - Specified by:
build
in classjenkins.scm.api.SCMSource
-
retrieveActions
@NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-