|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.plugins.clearcase.AbstractClearCaseScm
public abstract class AbstractClearCaseScm
Abstract class for ClearCase SCM. The class contains the logic around checkout and polling, the deriving classes only have to implement the specific checkout and polling logic.
| Nested Class Summary | |
|---|---|
static class |
AbstractClearCaseScm.ItemListenerImpl
|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static java.lang.String |
CLEARCASE_VIEWNAME_ENVSTR
|
static java.lang.String |
CLEARCASE_VIEWPATH_ENVSTR
|
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
AbstractClearCaseScm(java.lang.String viewName,
java.lang.String mkviewOptionalParam,
boolean filterOutDestroySubBranchEvent,
boolean useUpdate,
boolean rmviewonrename,
java.lang.String excludedRegions,
boolean useDynamicView,
java.lang.String viewDrive,
java.lang.String loadRules,
java.lang.String multiSitePollBuffer,
boolean createDynView,
java.lang.String winDynStorageDir,
java.lang.String unixDynStorageDir)
|
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
Adds the env variable for the ClearCase SCMs. |
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
protected java.util.List<Filter> |
configureFilters(ClearToolLauncher ctLauncher)
|
protected abstract CheckOutAction |
createCheckOutAction(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
Create a CheckOutAction that will be used by the checkout method. |
protected ClearTool |
createClearTool(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
|
protected ClearToolLauncher |
createClearToolLauncher(hudson.model.TaskListener listener,
hudson.FilePath workspace,
hudson.Launcher launcher)
Creates a Hudson clear tool launcher. |
protected abstract HistoryAction |
createHistoryAction(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
Create a HistoryAction that will be used by the pollChanges() and checkout() method. |
protected abstract SaveChangeLogAction |
createSaveChangeLogAction(ClearToolLauncher launcher)
Create a SaveChangeLog action that is used to save a change log |
java.lang.String |
generateNormalizedViewName(hudson.model.AbstractBuild<?,?> build)
Returns a normalized view name that will be used in cleartool commands. |
java.lang.String |
generateNormalizedViewName(BuildVariableResolver variableResolver)
Returns a normalized view name that will be used in cleartool commands. |
abstract java.lang.String[] |
getBranchNames()
Return string array containing the branch names that should be used when polling for changes. |
hudson.model.Computer |
getBuildComputer(hudson.model.AbstractBuild<?,?> build)
Returns the computer a given build ran on. |
hudson.model.Computer |
getCurrentComputer()
Returns the current computer - used in constructor for BuildVariableResolver in place of direct call to Computer.currentComputer() so we can mock it in unit tests. |
java.lang.String |
getExcludedRegions()
|
java.lang.String[] |
getExcludedRegionsNormalized()
|
java.lang.String |
getLoadRules()
|
java.lang.String |
getMkviewOptionalParam()
Returns the user configured optional params that will be used in when creating a new view. |
hudson.FilePath |
getModuleRoot(hudson.FilePath workspace)
|
int |
getMultiSitePollBuffer()
|
java.lang.String |
getNormalizedUnixDynStorageDir(hudson.util.VariableResolver variableResolver)
|
protected java.lang.String |
getNormalizedViewName()
|
java.lang.String |
getNormalizedWinDynStorageDir(hudson.util.VariableResolver variableResolver)
|
java.lang.String |
getUnixDynStorageDir()
|
java.lang.String |
getViewDrive()
|
java.lang.String |
getViewName()
|
java.lang.String[] |
getViewPaths()
Return string array containing the paths in the view that should be used when polling for changes. |
static java.lang.String |
getViewPathsRegexp(java.lang.String[] loadRules,
boolean isUnix)
|
java.lang.String |
getWinDynStorageDir()
|
boolean |
isCreateDynView()
|
boolean |
isFilteringOutDestroySubBranchEvent()
Returns if the "Destroyed branch" event should be filtered out or not. |
boolean |
isRemoveViewOnRename()
|
boolean |
isUseDynamicView()
|
boolean |
isUseUpdate()
|
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
boolean |
processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
|
boolean |
requiresWorkspaceForPolling()
|
protected void |
setNormalizedViewName(java.lang.String normalizedViewName)
|
boolean |
supportsPolling()
|
| Methods inherited from class hudson.scm.SCM |
|---|
_for, all, createChangeLogParser, createEmptyChangeLog, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoots, nullify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLEARCASE_VIEWNAME_ENVSTR
public static final java.lang.String CLEARCASE_VIEWPATH_ENVSTR
| Constructor Detail |
|---|
public AbstractClearCaseScm(java.lang.String viewName,
java.lang.String mkviewOptionalParam,
boolean filterOutDestroySubBranchEvent,
boolean useUpdate,
boolean rmviewonrename,
java.lang.String excludedRegions,
boolean useDynamicView,
java.lang.String viewDrive,
java.lang.String loadRules,
java.lang.String multiSitePollBuffer,
boolean createDynView,
java.lang.String winDynStorageDir,
java.lang.String unixDynStorageDir)
| Method Detail |
|---|
protected void setNormalizedViewName(java.lang.String normalizedViewName)
protected java.lang.String getNormalizedViewName()
protected abstract CheckOutAction createCheckOutAction(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
launcher - the command line launcher
protected abstract HistoryAction createHistoryAction(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
variableResolver - useDynamicView - launcher - the command line launcher
protected abstract SaveChangeLogAction createSaveChangeLogAction(ClearToolLauncher launcher)
launcher - the command line launcher
public abstract java.lang.String[] getBranchNames()
public java.lang.String[] getViewPaths()
public boolean isUseDynamicView()
public int getMultiSitePollBuffer()
public java.lang.String getViewDrive()
public java.lang.String getLoadRules()
public boolean isCreateDynView()
public boolean supportsPolling()
supportsPolling in class hudson.scm.SCMpublic boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCMpublic hudson.FilePath getModuleRoot(hudson.FilePath workspace)
getModuleRoot in class hudson.scm.SCMpublic java.lang.String getViewName()
public java.lang.String getWinDynStorageDir()
public java.lang.String getNormalizedWinDynStorageDir(hudson.util.VariableResolver variableResolver)
public java.lang.String getUnixDynStorageDir()
public java.lang.String getNormalizedUnixDynStorageDir(hudson.util.VariableResolver variableResolver)
public hudson.model.Computer getCurrentComputer()
public hudson.model.Computer getBuildComputer(hudson.model.AbstractBuild<?,?> build)
public java.lang.String generateNormalizedViewName(hudson.model.AbstractBuild<?,?> build)
build - the project to get the name from
public java.lang.String generateNormalizedViewName(BuildVariableResolver variableResolver)
variableResolver - An initialized build variable resolver.
public java.lang.String getMkviewOptionalParam()
public boolean isFilteringOutDestroySubBranchEvent()
public void buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
buildEnvVars in class hudson.scm.SCM
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
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 pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
pollChanges in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedException
protected ClearToolLauncher createClearToolLauncher(hudson.model.TaskListener listener,
hudson.FilePath workspace,
hudson.Launcher launcher)
listener - listener to write command output toworkspace - the workspace for the joblauncher - actual launcher to launch commands with
protected ClearTool createClearTool(hudson.util.VariableResolver variableResolver,
ClearToolLauncher launcher)
public boolean processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
throws java.io.IOException,
java.lang.InterruptedException
processWorkspaceBeforeDeletion in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedExceptionpublic boolean isUseUpdate()
public boolean isRemoveViewOnRename()
public java.lang.String getExcludedRegions()
public java.lang.String[] getExcludedRegionsNormalized()
protected java.util.List<Filter> configureFilters(ClearToolLauncher ctLauncher)
public static java.lang.String getViewPathsRegexp(java.lang.String[] loadRules,
boolean isUnix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||