Package hudson.scm
Class CvsProjectset
java.lang.Object
hudson.scm.SCM
hudson.scm.AbstractCvs
hudson.scm.CvsProjectset
- All Implemented Interfaces:
ExtensionPoint,Describable<SCM>,ICvs,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.scm.AbstractCvs
DATE_FORMATTERFields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
ConstructorsConstructorDescriptionCvsProjectset(CvsRepository[] repositories, boolean canUseUpdate, String username, String password, CVSRepositoryBrowser browser, boolean skipChangeLog, boolean pruneEmptyDirectories, boolean disableCvsQuiet, boolean cleanOnFailedUpdate, boolean forceCleanCopy) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) voidcheckout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) protected PollingResultcompareRemoteRevisionWith(AbstractProject<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) Gets the descriptor for the current plugin.Gets a list of all repositories configured for this job.booleanWhether CVS update can be used in place of CVS checkout if a workspace is already checked out.booleanAllows cleaning of the workspace with a fresh checkout if CVS update fails.booleanCVS is normally run in quiet mode to reduce un-needed log output.booleanWhether to checkout an individual module's files directly into the workspace root rather than into a subdirectory of the module name.booleanControls whether CVS should apply the 'C' option to update commands to overwrite local changes.booleanWhether CVS should be instructed to remove empty directories as part of checkout/update.booleanAllows the option of skipping the changelog generation after checkout.booleanMethods inherited from class hudson.scm.AbstractCvs
calcRevisionsFromBuild, calcRevisionsFromBuild, calculateChangeLog, calculateRepositoryState, checkout, compareRemoteRevisionWith, createChangeLogParser, getCheckoutDate, getCvsClient, getCvsClient, getGlobalOptions, isCheckoutCurrentTimestamp, isSymLink, postCheckoutMethods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
-
Constructor Details
-
CvsProjectset
@DataBoundConstructor public CvsProjectset(CvsRepository[] repositories, boolean canUseUpdate, String username, String password, CVSRepositoryBrowser browser, boolean skipChangeLog, boolean pruneEmptyDirectories, boolean disableCvsQuiet, boolean cleanOnFailedUpdate, boolean forceCleanCopy)
-
-
Method Details
-
getRepositories
Description copied from interface:ICvsGets a list of all repositories configured for this job. This list does not include any added through discovery e.g. parsing projectsets or ant scripts, purely those configured through the config page.- Returns:
- a list of configured repositories.
-
getUsername
-
getPassword
-
isCanUseUpdate
@Exported public boolean isCanUseUpdate()Description copied from interface:ICvsWhether CVS update can be used in place of CVS checkout if a workspace is already checked out.- Returns:
- true is the
cvs upcan be used in place ofcvs counder the correct circumstances.
-
compareRemoteRevisionWith
protected PollingResult compareRemoteRevisionWith(AbstractProject<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
compareRemoteRevisionWithin classSCM- Throws:
IOExceptionInterruptedException
-
checkout
public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
checkout
public void checkout(@NonNull Run<?, ?> build, @NonNull Launcher launcher, @NonNull FilePath workspace, @NonNull TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()- Overrides:
requiresWorkspaceForPollingin classSCM
-
isPruneEmptyDirectories
@Exported public boolean isPruneEmptyDirectories()Description copied from interface:ICvsWhether CVS should be instructed to remove empty directories as part of checkout/update.- Returns:
- if CVS should remove empty directories from the workspace on checkout
-
isCleanOnFailedUpdate
@Exported public boolean isCleanOnFailedUpdate()Description copied from interface:ICvsAllows cleaning of the workspace with a fresh checkout if CVS update fails.- Returns:
- whether to do a workspace wipe-out followed be CVS checkout if CVS update fails
-
isDisableCvsQuiet
@Exported public boolean isDisableCvsQuiet()Description copied from interface:ICvsCVS is normally run in quiet mode to reduce un-needed log output. This option allows plugins to stop quiet mode being enabled.- Specified by:
isDisableCvsQuietin interfaceICvs- Overrides:
isDisableCvsQuietin classAbstractCvs- Returns:
- whether to disable quiet mode or not.
-
isSkipChangeLog
@Exported public boolean isSkipChangeLog()Description copied from interface:ICvsAllows the option of skipping the changelog generation after checkout. Primarily used to save time as part of the build process . Has no effect on the polling configuration which uses a similar method to calculate changes.- Returns:
- whether changelog generation should be skipped or not.
-
isForceCleanCopy
@Exported public boolean isForceCleanCopy()Description copied from interface:ICvsControls whether CVS should apply the 'C' option to update commands to overwrite local changes.- Returns:
- whether CVS should over-write modifications to controlled files int he workspace during update
-
isFlatten
public boolean isFlatten()Description copied from interface:ICvsWhether to checkout an individual module's files directly into the workspace root rather than into a subdirectory of the module name. Some scripts expect this functionality so this switch allows users to enabled or disable this. Some plugins may not have the option of supporting this if they automatically checkout multiple module (e.g. the CVS projectset plugin)- Returns:
- true if the files should be checkout directly into the workspace root, false if they should be put in a subdirectory.
-
getBrowser
- Overrides:
getBrowserin classSCM
-
getDescriptor
Description copied from interface:ICvsGets the descriptor for the current plugin.- Specified by:
getDescriptorin interfaceDescribable<SCM>- Specified by:
getDescriptorin interfaceICvs- Overrides:
getDescriptorin classAbstractCvs- Returns:
- the current descriptor
- See Also:
-