public abstract class AbstractCvs extends SCM implements ICvs
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
protected static DateFormat |
DATE_FORMATTER |
PERMISSIONS, TAG
Constructor and Description |
---|
AbstractCvs() |
Modifier and Type | Method and Description |
---|---|
SCMRevisionState |
calcRevisionsFromBuild(AbstractBuild<?,?> build,
Launcher launcher,
TaskListener listener)
Since we add the current SCMRevisionState as an action during the build
(so we can get the current workspace state), this method should never be
called.
|
SCMRevisionState |
calcRevisionsFromBuild(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
protected List<CVSChangeLogSet.CVSChangeLog> |
calculateChangeLog(Date startTime,
Date endTime,
CvsRepository repository,
TaskListener listener,
EnvVars envVars,
FilePath workspace)
Builds a list of changes that have occurred in the given repository
between any 2 time-stamps.
|
protected List<CvsFile> |
calculateRepositoryState(Date startTime,
Date endTime,
CvsRepository repository,
TaskListener listener,
EnvVars envVars,
FilePath workspace)
Builds a list of files that have changed in the given repository between
any 2 time-stamps.
|
protected boolean |
checkout(CvsRepository[] repositories,
boolean isFlatten,
FilePath workspace,
boolean canUseUpdate,
Run<?,?> build,
String dateStamp,
boolean pruneEmptyDirectories,
boolean cleanOnFailedUpdate,
TaskListener listener) |
protected PollingResult |
compareRemoteRevisionWith(AbstractProject<?,?> project,
Launcher launcher,
FilePath workspace,
TaskListener listener,
SCMRevisionState baseline,
CvsRepository[] repositories) |
ChangeLogParser |
createChangeLogParser() |
protected Date |
getCheckoutDate(Run<?,?> build) |
org.netbeans.lib.cvsclient.Client |
getCvsClient(CvsRepository repository,
EnvVars envVars,
TaskListener listener)
Gets an instance of the CVS client that can be used for connection to a repository.
|
org.netbeans.lib.cvsclient.Client |
getCvsClient(CvsRepository repository,
EnvVars envVars,
TaskListener listener,
boolean showAuthenticationInfo)
Gets an instance of the CVS client that can be used for connection to a repository.
|
AbstractCvsDescriptor |
getDescriptor()
Gets the descriptor for the current plugin.
|
org.netbeans.lib.cvsclient.command.GlobalOptions |
getGlobalOptions(CvsRepository repository,
EnvVars envVars) |
boolean |
isCheckoutCurrentTimestamp() |
boolean |
isDisableCvsQuiet()
CVS is normally run in quiet mode to reduce un-needed log output.
|
static boolean |
isSymLink(File file,
TaskListener listener)
Check if the given file is a symbolic link.
|
protected void |
postCheckout(Run<?,?> build,
File changelogFile,
CvsRepository[] repositories,
FilePath workspace,
TaskListener listener,
boolean flatten,
EnvVars envVars) |
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, checkout, checkout, compareRemoteRevisionWith, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRepositories, isCanUseUpdate, isCleanOnFailedUpdate, isFlatten, isForceCleanCopy, isPruneEmptyDirectories, isSkipChangeLog
protected static final DateFormat DATE_FORMATTER
public AbstractCvsDescriptor getDescriptor()
ICvs
getDescriptor
in interface Describable<SCM>
getDescriptor
in interface ICvs
getDescriptor
in class SCM
SCM.getDescriptor()
public boolean isCheckoutCurrentTimestamp()
protected boolean checkout(CvsRepository[] repositories, boolean isFlatten, FilePath workspace, boolean canUseUpdate, Run<?,?> build, String dateStamp, boolean pruneEmptyDirectories, boolean cleanOnFailedUpdate, TaskListener listener) throws IOException, InterruptedException
IOException
InterruptedException
public org.netbeans.lib.cvsclient.Client getCvsClient(CvsRepository repository, EnvVars envVars, TaskListener listener)
repository
- the repository to connect toenvVars
- variables to use for macro expansionpublic org.netbeans.lib.cvsclient.Client getCvsClient(CvsRepository repository, EnvVars envVars, TaskListener listener, boolean showAuthenticationInfo)
repository
- the repository to connect toenvVars
- variables to use for macro expansionshowAuthenticationInfo
- whether to log where the authentication details are being obtanied frompublic org.netbeans.lib.cvsclient.command.GlobalOptions getGlobalOptions(CvsRepository repository, EnvVars envVars)
public boolean isDisableCvsQuiet()
ICvs
isDisableCvsQuiet
in interface ICvs
public SCMRevisionState calcRevisionsFromBuild(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class SCM
IOException
InterruptedException
SCM.calcRevisionsFromBuild(hudson.model.AbstractBuild, hudson.Launcher, TaskListener)
@CheckForNull public SCMRevisionState calcRevisionsFromBuild(@Nonnull Run<?,?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @Nonnull TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class SCM
IOException
InterruptedException
protected PollingResult compareRemoteRevisionWith(AbstractProject<?,?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline, CvsRepository[] repositories) throws IOException, InterruptedException
IOException
InterruptedException
protected List<CvsFile> calculateRepositoryState(Date startTime, Date endTime, CvsRepository repository, TaskListener listener, EnvVars envVars, FilePath workspace) throws IOException, InterruptedException
startTime
- the time-stamp to start filtering changes fromendTime
- the time-stamp to end filtering changes fromrepository
- the repository to search for changes in. All modules under
this repository will be checkedlistener
- where to send log outputenvVars
- the environmental variables to perform parameter expansion fromIOException
- on communication failure (e.g. communication with slaves)InterruptedException
protected List<CVSChangeLogSet.CVSChangeLog> calculateChangeLog(Date startTime, Date endTime, CvsRepository repository, TaskListener listener, EnvVars envVars, FilePath workspace) throws IOException, InterruptedException
startTime
- the time-stamp to start filtering changes fromendTime
- the time-stamp to end filtering changes fromrepository
- the repository to search for changes in. All modules under
this repository will be checkedlistener
- where to send log outputenvVars
- the environmental variables to perform parameter expansion from.IOException
- on communication failure (e.g. communication with slaves)InterruptedException
- on job cancellationprotected void postCheckout(Run<?,?> build, File changelogFile, CvsRepository[] repositories, FilePath workspace, TaskListener listener, boolean flatten, EnvVars envVars) throws IOException, InterruptedException
IOException
InterruptedException
public static boolean isSymLink(File file, TaskListener listener)
file
- name of the file to testpublic ChangeLogParser createChangeLogParser()
createChangeLogParser
in class SCM
Copyright © 2016–2022. All rights reserved.