public class CVSSCM extends AbstractCvs implements Serializable
I couldn't call this class "CVS" because that would cause the view folder name to collide with CVS control files.
This object gets shipped to the remote machine to perform some of the work,
so it implements Serializable
.
Modifier and Type | Class and Description |
---|---|
static class |
CVSSCM.DescriptorImpl |
class |
CVSSCM.TagAction
Deprecated.
we now use CvsTagAction but have to keep this class around
for old builds that have a serialized version of this class
and use the old archive method of tagging a build
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
DATE_FORMATTER
PERMISSIONS, TAG
Constructor and Description |
---|
CVSSCM(List<CvsRepository> repositories,
boolean canUseUpdate,
boolean legacy,
boolean skipChangeLog,
boolean pruneEmptyDirectories,
boolean disableCvsQuiet,
boolean cleanOnFailedUpdate,
boolean forceCleanCopy)
Deprecated.
|
CVSSCM(List<CvsRepository> repositories,
boolean canUseUpdate,
boolean legacy,
boolean skipChangeLog,
boolean pruneEmptyDirectories,
boolean disableCvsQuiet,
boolean cleanOnFailedUpdate,
boolean forceCleanCopy,
boolean checkoutCurrentTimestamp) |
CVSSCM(String cvsRoot,
String allModules,
String branch,
String cvsRsh,
boolean canUseUpdate,
boolean useHeadIfNotFound,
boolean legacy,
boolean isTag,
String excludedRegions)
Deprecated.
we now use multiple repositories and don't use cvsRsh
|
CVSSCM(String cvsRoot,
String allModules,
String branch,
String cvsRsh,
boolean canUseUpdate,
boolean useHeadIfNotFound,
boolean legacy,
boolean isTag,
String excludedRegions,
CVSRepositoryBrowser browser)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
buildEnvVars(AbstractBuild<?,?> build,
Map<String,String> env) |
boolean |
checkout(AbstractBuild<?,?> build,
Launcher launcher,
FilePath workspace,
BuildListener listener,
File changelogFile) |
void |
checkout(Run<?,?> build,
Launcher launcher,
FilePath workspace,
TaskListener listener,
File changelogFile,
SCMRevisionState baseline) |
protected PollingResult |
compareRemoteRevisionWith(AbstractProject<?,?> project,
Launcher launcher,
FilePath workspace,
TaskListener listener,
SCMRevisionState baseline)
Checks for differences between the current workspace and the remote
repository.
|
CvsFacadeRepositoryBrowser |
getBrowser() |
CVSSCM.DescriptorImpl |
getDescriptor()
Gets the descriptor for the current plugin.
|
FilePath |
getModuleRoot(FilePath workspace,
AbstractBuild build)
If there are multiple modules, return the module directory of the first
one.
|
FilePath[] |
getModuleRoots(FilePath workspace,
AbstractBuild build) |
CvsRepository[] |
getRepositories()
Gets the repositories currently configured for this job.
|
boolean |
isCanUseUpdate()
Whether CVS update can be used in place of CVS checkout if a workspace is already checked out.
|
boolean |
isCheckoutCurrentTimestamp() |
boolean |
isCleanOnFailedUpdate()
Allows cleaning of the workspace with a fresh checkout if CVS update fails.
|
boolean |
isDisableCvsQuiet()
CVS is normally run in quiet mode to reduce un-needed log output.
|
boolean |
isFlatten()
Whether to checkout an individual module's files directly into the workspace root
rather than into a subdirectory of the module name.
|
boolean |
isForceCleanCopy()
Controls whether CVS should apply the 'C' option to update commands to overwrite local changes.
|
boolean |
isLegacy() |
boolean |
isPruneEmptyDirectories()
Whether CVS should be instructed to remove empty directories as part of checkout/update.
|
boolean |
isSkipChangeLog()
Allows the option of skipping the changelog generation after checkout.
|
Object |
readResolve()
Convert legacy configuration into the new class structure.
|
boolean |
requiresWorkspaceForPolling() |
calcRevisionsFromBuild, calcRevisionsFromBuild, calculateChangeLog, calculateRepositoryState, checkout, compareRemoteRevisionWith, createChangeLogParser, getCheckoutDate, getCvsClient, getCvsClient, getGlobalOptions, isSymLink, postCheckout
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
@Deprecated public CVSSCM(String cvsRoot, String allModules, String branch, String cvsRsh, boolean canUseUpdate, boolean useHeadIfNotFound, boolean legacy, boolean isTag, String excludedRegions)
@Deprecated public CVSSCM(String cvsRoot, String allModules, String branch, String cvsRsh, boolean canUseUpdate, boolean useHeadIfNotFound, boolean legacy, boolean isTag, String excludedRegions, CVSRepositoryBrowser browser)
@Deprecated public CVSSCM(List<CvsRepository> repositories, boolean canUseUpdate, boolean legacy, boolean skipChangeLog, boolean pruneEmptyDirectories, boolean disableCvsQuiet, boolean cleanOnFailedUpdate, boolean forceCleanCopy)
@DataBoundConstructor public CVSSCM(List<CvsRepository> repositories, boolean canUseUpdate, boolean legacy, boolean skipChangeLog, boolean pruneEmptyDirectories, boolean disableCvsQuiet, boolean cleanOnFailedUpdate, boolean forceCleanCopy, boolean checkoutCurrentTimestamp)
public final Object readResolve()
@Exported public CvsRepository[] getRepositories()
getRepositories
in interface ICvs
CvsRepository
public CvsFacadeRepositoryBrowser getBrowser()
getBrowser
in class SCM
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class SCM
protected PollingResult compareRemoteRevisionWith(AbstractProject<?,?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class SCM
IOException
InterruptedException
SCM.compareRemoteRevisionWith(AbstractProject, Launcher, FilePath, TaskListener, SCMRevisionState)
public FilePath getModuleRoot(FilePath workspace, AbstractBuild build)
getModuleRoot
in class SCM
workspace
- public FilePath[] getModuleRoots(FilePath workspace, AbstractBuild build)
getModuleRoots
in class SCM
@Exported public boolean isCanUseUpdate()
ICvs
isCanUseUpdate
in interface ICvs
@Exported public boolean isSkipChangeLog()
ICvs
isSkipChangeLog
in interface ICvs
@Exported public boolean isPruneEmptyDirectories()
ICvs
isPruneEmptyDirectories
in interface ICvs
@Exported public boolean isFlatten()
ICvs
@Exported public boolean isDisableCvsQuiet()
ICvs
isDisableCvsQuiet
in interface ICvs
isDisableCvsQuiet
in class AbstractCvs
@Exported public boolean isCleanOnFailedUpdate()
ICvs
isCleanOnFailedUpdate
in interface ICvs
@Exported public boolean isForceCleanCopy()
ICvs
isForceCleanCopy
in interface ICvs
public boolean isLegacy()
@Exported public boolean isCheckoutCurrentTimestamp()
isCheckoutCurrentTimestamp
in class AbstractCvs
public void buildEnvVars(AbstractBuild<?,?> build, Map<String,String> env)
buildEnvVars
in class SCM
public boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout
in class SCM
IOException
InterruptedException
public void checkout(@Nonnull Run<?,?> build, @Nonnull Launcher launcher, @Nonnull FilePath workspace, @Nonnull TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class SCM
IOException
InterruptedException
public CVSSCM.DescriptorImpl getDescriptor()
ICvs
getDescriptor
in interface Describable<SCM>
getDescriptor
in interface ICvs
getDescriptor
in class AbstractCvs
SCM.getDescriptor()
Copyright © 2016–2022. All rights reserved.