Package hudson.plugins.mercurial
Class MercurialSCM
java.lang.Object
hudson.scm.SCM
hudson.plugins.mercurial.MercurialSCM
- All Implemented Interfaces:
ExtensionPoint
,Describable<SCM>
,Serializable
Mercurial SCM.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static enum
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
-
Constructor Summary
ConstructorsConstructorDescriptionMercurialSCM
(String source) MercurialSCM
(String installation, String source, MercurialSCM.RevisionType revisionType, String revision, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId) Deprecated.MercurialSCM
(String installation, String source, MercurialSCM.RevisionType revisionType, String revision, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId, boolean disableChangeLog) Deprecated.MercurialSCM
(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean) Deprecated.MercurialSCM
(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironment
(Run<?, ?> build, Map<String, String> env) calcRevisionsFromBuild
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
checkout
(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) compareRemoteRevisionWith
(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) static MercurialInstallation
findInstallation
(String name) Deprecated.getKey()
getModuleRoot
(FilePath workspace, AbstractBuild build) Gets the source repository path.boolean
isClean()
True if we want clean check out each time.boolean
boolean
final void
setBrowser
(HgBrowser browser) final void
setClean
(boolean clean) final void
setCredentialsId
(String credentialsId) final void
setDisableChangeLog
(boolean disableChangeLog) final void
setInstallation
(String installation) final void
setModules
(String modules) final void
setRevision
(String revision) final void
setRevisionType
(MercurialSCM.RevisionType revisionType) final void
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
-
Constructor Details
-
MercurialSCM
-
MercurialSCM
@Deprecated public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean) Deprecated. -
MercurialSCM
@Deprecated public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId) Deprecated. -
MercurialSCM
@Deprecated public MercurialSCM(String installation, String source, @NonNull MercurialSCM.RevisionType revisionType, @NonNull String revision, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId) Deprecated. -
MercurialSCM
@Deprecated public MercurialSCM(String installation, String source, @NonNull MercurialSCM.RevisionType revisionType, @NonNull String revision, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId, boolean disableChangeLog) Deprecated.
-
-
Method Details
-
getInstallation
-
setInstallation
-
getSource
Gets the source repository path. Either URL or local file path. -
getKey
-
getCredentialsId
-
setCredentialsId
-
isDisableChangeLog
public boolean isDisableChangeLog() -
setDisableChangeLog
@DataBoundSetter public final void setDisableChangeLog(boolean disableChangeLog) -
getRevisionType
-
setRevisionType
-
getRevision
-
setRevision
-
getBranch
Deprecated. -
getSubdir
-
setSubdir
-
getBrowser
- Overrides:
getBrowser
in classSCM
-
setBrowser
-
guessBrowser
- Overrides:
guessBrowser
in classSCM
-
isClean
public boolean isClean()True if we want clean check out each time. This means deleting everything in the repository checkout (except.hg
). -
setClean
@DataBoundSetter public final void setClean(boolean clean) -
calcRevisionsFromBuild
public SCMRevisionState calcRevisionsFromBuild(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Overrides:
calcRevisionsFromBuild
in classSCM
- Throws:
IOException
InterruptedException
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()- Overrides:
requiresWorkspaceForPolling
in classSCM
-
compareRemoteRevisionWith
public PollingResult compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) throws IOException, InterruptedException- Overrides:
compareRemoteRevisionWith
in classSCM
- Throws:
IOException
InterruptedException
-
findInstallation
-
checkout
public void checkout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
checkout
in classSCM
- Throws:
IOException
InterruptedException
-
buildEnvironment
- Overrides:
buildEnvironment
in classSCM
-
createChangeLogParser
- Specified by:
createChangeLogParser
in classSCM
-
getModuleRoot
- Overrides:
getModuleRoot
in classSCM
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<SCM>
- Overrides:
getDescriptor
in classSCM
-
getModules
-
setModules
-