|
||||||||||
| 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.
| 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)
|
|
| 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 abstract ChangeLogAction |
createChangeLogAction(ClearToolLauncher launcher,
hudson.model.AbstractBuild<?,?> build)
Create a ChangeLogAction that will be used to get the change logs for a CC repository |
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
protected abstract CheckOutAction |
createCheckOutAction(ClearToolLauncher launcher)
Create a CheckOutAction that will be used by the checkout method. |
protected ClearTool |
createClearTool(ClearToolLauncher launcher)
|
protected ClearToolLauncher |
createClearToolLauncher(hudson.model.TaskListener listener,
hudson.FilePath workspace,
hudson.Launcher launcher)
Creates a Hudson clear tool launcher. |
protected abstract PollAction |
createPollAction(ClearToolLauncher launcher)
Create a PollAction that will be used by the pollChanges() method. |
protected abstract SaveChangeLogAction |
createSaveChangeLogAction(ClearToolLauncher launcher)
Create a SaveChangeLog action that is used to save a change log |
protected abstract TaggingAction |
createTaggingAction(ClearToolLauncher clearToolLauncher)
Create a TaggingAction that will be used at the end of the build to tag the CC repository |
abstract java.lang.String[] |
getBranchNames()
Return string array containing the branch names that should be used when polling for changes. |
hudson.scm.SCMDescriptor<?> |
getDescriptor()
|
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)
|
java.lang.String |
getNormalizedViewName(hudson.model.AbstractProject<?,?> project)
Returns a normalized view name that will be used in cleartool commands. |
java.lang.String |
getViewName()
|
abstract java.lang.String[] |
getViewPaths(hudson.FilePath viewPath)
Return string array containing the paths in the view that should be used when polling for changes. |
boolean |
isFilteringOutDestroySubBranchEvent()
Returns if the "Destroyed branch" event should be filtered out or not. |
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
boolean |
requiresWorkspaceForPolling()
|
boolean |
supportsPolling()
|
| Methods inherited from class hudson.scm.SCM |
|---|
createEmptyChangeLog, getBrowser, 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)
| Method Detail |
|---|
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCMpublic hudson.scm.SCMDescriptor<?> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>getDescriptor in class hudson.scm.SCMprotected abstract CheckOutAction createCheckOutAction(ClearToolLauncher launcher)
launcher - the command line launcher
protected abstract PollAction createPollAction(ClearToolLauncher launcher)
launcher - the command line launcher
protected abstract SaveChangeLogAction createSaveChangeLogAction(ClearToolLauncher launcher)
launcher - the command line launcher
protected abstract ChangeLogAction createChangeLogAction(ClearToolLauncher launcher,
hudson.model.AbstractBuild<?,?> build)
launcher - the command line launcherbuild - the current build
protected abstract TaggingAction createTaggingAction(ClearToolLauncher clearToolLauncher)
launcher - the command line launcher
public abstract java.lang.String[] getBranchNames()
public abstract java.lang.String[] getViewPaths(hudson.FilePath viewPath)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - the file path for the view
java.io.IOException
java.lang.InterruptedExceptionpublic 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 getNormalizedViewName(hudson.model.AbstractProject<?,?> project)
project - the project to get the name from
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(ClearToolLauncher launcher)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||