|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.scm.CVSSCM
public class CVSSCM
CVS.
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 implementsSerializable.
| Nested Class Summary | |
|---|---|
static class |
CVSSCM.DescriptorImpl
|
class |
CVSSCM.TagAction
Deprecated. this class was left for backward compatibility. |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static boolean |
debug
Temporary hack for assisting trouble-shooting. |
static boolean |
noQuiet
|
static boolean |
skipChangeLog
True to avoid computing the changelog. |
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
CVSSCM(String cvsRoot,
String allModules,
String branch,
String cvsRsh,
boolean canUseUpdate,
boolean legacy,
boolean isTag,
String excludedRegions)
|
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> abstractBuild,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath ws,
hudson.model.BuildListener listener,
File changelogFile)
|
boolean |
checkout(hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
protected Map<String,String> |
createEnvVarMap(boolean overrideOnly)
|
String |
getAllModules()
|
String[] |
getAllModulesNormalized()
List up all modules to check out. |
String |
getBranch()
Branch to build. |
CVSRepositoryBrowser |
getBrowser()
|
boolean |
getCanUseUpdate()
|
String |
getCvsRoot()
|
String |
getCvsRsh()
|
CVSSCM.DescriptorImpl |
getDescriptor()
|
String |
getExcludedRegions()
|
String[] |
getExcludedRegionsNormalized()
|
hudson.FilePath |
getModuleRoot(hudson.FilePath workspace)
If there are multiple modules, return the module directory of the first one. |
hudson.FilePath[] |
getModuleRoots(hudson.FilePath workspace)
|
boolean |
isFlatten()
|
boolean |
isLegacy()
|
boolean |
isTag()
Returns true if getBranch() represents a tag. |
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
|
protected boolean |
run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder cmd,
hudson.model.TaskListener listener,
hudson.FilePath dir)
|
protected boolean |
run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder cmd,
hudson.model.TaskListener listener,
hudson.FilePath dir,
OutputStream out)
Invokes the command with the specified command line option and wait for its completion. |
| Methods inherited from class hudson.scm.SCM |
|---|
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
public static boolean noQuiet
public static boolean skipChangeLog
| Constructor Detail |
|---|
@DataBoundConstructor
public CVSSCM(String cvsRoot,
String allModules,
String branch,
String cvsRsh,
boolean canUseUpdate,
boolean legacy,
boolean isTag,
String excludedRegions)
| Method Detail |
|---|
public CVSRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCM@Exported public String getCvsRoot()
@Exported public boolean isTag()
getBranch() represents a tag.
This causes Hudson to stop using "-D" option while check out and update.
public hudson.FilePath getModuleRoot(hudson.FilePath workspace)
getModuleRoot in class hudson.scm.SCMworkspace - public hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
getModuleRoots in class hudson.scm.SCMpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCM@Exported public String getAllModules()
@Exported public String getExcludedRegions()
public String[] getExcludedRegionsNormalized()
public String[] getAllModulesNormalized()
@Exported public String getBranch()
@Exported public String getCvsRsh()
@Exported public boolean getCanUseUpdate()
@Exported public boolean isFlatten()
public boolean isLegacy()
public boolean pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
pollChanges in class hudson.scm.SCMIOException
InterruptedException
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath ws,
hudson.model.BuildListener listener,
File changelogFile)
throws IOException,
InterruptedException
checkout in class hudson.scm.SCMIOException
InterruptedException
public boolean checkout(hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
IOException
InterruptedException
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> abstractBuild,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOException
InterruptedExceptionpublic CVSSCM.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>getDescriptor in class hudson.scm.SCM
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
buildEnvVars in class hudson.scm.SCM
protected final boolean run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder cmd,
hudson.model.TaskListener listener,
hudson.FilePath dir,
OutputStream out)
throws IOException,
InterruptedException
dir - if launching locally this is a local path, otherwise a remote path.out - Receives output from the executed program.
IOException
InterruptedException
protected final boolean run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder cmd,
hudson.model.TaskListener listener,
hudson.FilePath dir)
throws IOException,
InterruptedException
IOException
InterruptedExceptionprotected final Map<String,String> createEnvVarMap(boolean overrideOnly)
overrideOnly - true to indicate that the returned map shall only contain
properties that need to be overridden. This is for use with Launcher.
false to indicate that the map should contain complete map.
This is to invoke Proc directly.
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
throws IOException,
InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||