|
||||||||||
| 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 implements Serializable.
| Nested Class Summary | |
|---|---|
static class |
CVSSCM.DescriptorImpl
|
class |
CVSSCM.TagAction
Action for a build that performs the tagging. |
static class |
CVSSCM.TagActionDescriptor
|
static class |
CVSSCM.TagWorkerThread
|
| 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(java.lang.String cvsRoot,
java.lang.String allModules,
java.lang.String branch,
java.lang.String cvsRsh,
boolean canUseUpdate,
boolean legacy,
boolean isTag,
java.lang.String excludedRegions)
|
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath ws,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
boolean |
checkout(hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
protected java.util.Map<java.lang.String,java.lang.String> |
createEnvVarMap(boolean overrideOnly)
|
java.lang.String |
getAllModules()
|
java.lang.String[] |
getAllModulesNormalized()
List up all modules to check out. |
java.lang.String |
getBranch()
Branch to build. |
CVSRepositoryBrowser |
getBrowser()
|
boolean |
getCanUseUpdate()
|
java.lang.String |
getCvsRoot()
|
java.lang.String |
getCvsRsh()
|
CVSSCM.DescriptorImpl |
getDescriptor()
|
java.lang.String |
getExcludedRegions()
|
java.lang.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,
java.io.OutputStream out)
Invokes the command with the specified command line option and wait for its completion. |
| Methods inherited from class hudson.scm.SCM |
|---|
_for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getType, nullify, 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
Setting this property to true would cause cvs log to dump a lot of messages.
public static boolean noQuiet
public static boolean skipChangeLog
| Constructor Detail |
|---|
@DataBoundConstructor
public CVSSCM(java.lang.String cvsRoot,
java.lang.String allModules,
java.lang.String branch,
java.lang.String cvsRsh,
boolean canUseUpdate,
boolean legacy,
boolean isTag,
java.lang.String excludedRegions)
| Method Detail |
|---|
public CVSRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCM@Exported public java.lang.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 java.lang.String getAllModules()
@Exported public java.lang.String getExcludedRegions()
public java.lang.String[] getExcludedRegionsNormalized()
public java.lang.String[] getAllModulesNormalized()
@Exported public java.lang.String getBranch()
@Exported public java.lang.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 java.io.IOException,
java.lang.InterruptedException
pollChanges in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedException
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath ws,
hudson.model.BuildListener listener,
java.io.File changelogFile)
throws java.io.IOException,
java.lang.InterruptedException
checkout in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedException
public boolean checkout(hudson.Launcher launcher,
hudson.FilePath dir,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.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,
java.util.Map<java.lang.String,java.lang.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,
java.io.OutputStream out)
throws java.io.IOException,
java.lang.InterruptedException
dir - if launching locally this is a local path, otherwise a remote path.out - Receives output from the executed program.
java.io.IOException
java.lang.InterruptedException
protected final boolean run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder cmd,
hudson.model.TaskListener listener,
hudson.FilePath dir)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedExceptionprotected final java.util.Map<java.lang.String,java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||