public class MercurialSCM extends SCM implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MercurialSCM.DescriptorImpl |
static class |
MercurialSCM.RevisionType |
ExtensionPoint.LegacyInstancesAreScopedToHudson
PERMISSIONS, TAG
Constructor and Description |
---|
MercurialSCM(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.
|
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
@DataBoundConstructor public MercurialSCM(String source)
@Deprecated public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean)
@Deprecated public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean, String credentialsId)
@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 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)
public String getInstallation()
@DataBoundSetter public final void setInstallation(String installation)
public String getSource()
public String getCredentialsId()
@DataBoundSetter public final void setCredentialsId(String credentialsId)
public boolean isDisableChangeLog()
@DataBoundSetter public final void setDisableChangeLog(boolean disableChangeLog)
@NonNull public MercurialSCM.RevisionType getRevisionType()
@DataBoundSetter public final void setRevisionType(@NonNull MercurialSCM.RevisionType revisionType)
@NonNull public String getRevision()
@DataBoundSetter public final void setRevision(@NonNull String revision)
@Deprecated public String getBranch()
public String getSubdir()
@DataBoundSetter public final void setSubdir(String subdir)
public HgBrowser getBrowser()
getBrowser
in class SCM
@DataBoundSetter public final void setBrowser(HgBrowser browser)
public RepositoryBrowser<?> guessBrowser()
guessBrowser
in class SCM
public boolean isClean()
.hg
).@DataBoundSetter public final void setClean(boolean clean)
public SCMRevisionState calcRevisionsFromBuild(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class SCM
IOException
InterruptedException
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class SCM
public PollingResult compareRemoteRevisionWith(Job<?,?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class SCM
IOException
InterruptedException
@CheckForNull public static MercurialInstallation findInstallation(String name)
public void checkout(Run<?,?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class SCM
IOException
InterruptedException
public void buildEnvironment(@NonNull Run<?,?> build, @NonNull Map<String,String> env)
buildEnvironment
in class SCM
public ChangeLogParser createChangeLogParser()
createChangeLogParser
in class SCM
public FilePath getModuleRoot(FilePath workspace, AbstractBuild build)
getModuleRoot
in class SCM
public MercurialSCM.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<SCM>
getDescriptor
in class SCM
public String getModules()
@DataBoundSetter public final void setModules(String modules)
Copyright © 2016–2022. All rights reserved.