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 classstatic enumNested 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 TypeMethodDescriptionvoidbuildEnvironment(Run<?, ?> build, Map<String, String> env) calcRevisionsFromBuild(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) voidcheckout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) static MercurialInstallationfindInstallation(String name) Deprecated.getKey()getModuleRoot(FilePath workspace, AbstractBuild build) Gets the source repository path.booleanisClean()True if we want clean check out each time.booleanbooleanfinal voidsetBrowser(HgBrowser browser) final voidsetClean(boolean clean) final voidsetCredentialsId(String credentialsId) final voidsetDisableChangeLog(boolean disableChangeLog) final voidsetInstallation(String installation) final voidsetModules(String modules) final voidsetRevision(String revision) final voidsetRevisionType(MercurialSCM.RevisionType revisionType) final voidMethods 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:
getBrowserin classSCM
-
setBrowser
-
guessBrowser
- Overrides:
guessBrowserin 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:
calcRevisionsFromBuildin classSCM- Throws:
IOExceptionInterruptedException
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()- Overrides:
requiresWorkspaceForPollingin classSCM
-
compareRemoteRevisionWith
public PollingResult compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) throws IOException, InterruptedException- Overrides:
compareRemoteRevisionWithin classSCM- Throws:
IOExceptionInterruptedException
-
findInstallation
-
checkout
public void checkout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
buildEnvironment
- Overrides:
buildEnvironmentin classSCM
-
createChangeLogParser
- Specified by:
createChangeLogParserin classSCM
-
getModuleRoot
- Overrides:
getModuleRootin classSCM
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<SCM>- Overrides:
getDescriptorin classSCM
-
getModules
-
setModules
-