net.praqma.hudson.scm
Class PucmScm
java.lang.Object
hudson.scm.SCM
net.praqma.hudson.scm.PucmScm
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>
public class PucmScm
- extends hudson.scm.SCM
Pucm is responsible for everything regarding Hudsons connection to
ClearCase pre-build. This class defines all the files required by the user.
The information can be entered on the config page.
- Author:
- Troels Selch, Margit Bennetzen
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Constructor Summary |
PucmScm()
Default constructor, mainly used for unit tests. |
PucmScm(java.lang.String component,
java.lang.String levelToPoll,
java.lang.String loadModule,
java.lang.String stream,
boolean newest,
boolean multiSite,
boolean testing,
java.lang.String buildProject)
The constructor is used by Hudson to create the instance of the plugin
needed for a connection to ClearCase. |
PucmScm(java.lang.String component,
java.lang.String levelToPoll,
java.lang.String loadModule,
java.lang.String stream,
boolean newest,
boolean testing,
java.lang.String buildProject)
Deprecated. as of 0.3.10 |
|
Method Summary |
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
java.util.Map<java.lang.String,java.lang.String> env)
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
boolean |
checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState rstate)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
boolean |
doPostbuild()
|
net.praqma.clearcase.ucm.entities.Baseline |
getBaseline()
|
java.lang.String |
getBuildProject()
|
java.lang.String |
getComponent()
|
java.lang.String |
getLevelToPoll()
|
java.lang.String |
getLoadModule()
|
boolean |
getMultiSite()
|
java.lang.String |
getStream()
|
net.praqma.clearcase.ucm.entities.Stream |
getStreamObject()
|
boolean |
isNewest()
|
void |
printBaselines(java.util.List<net.praqma.clearcase.ucm.entities.Baseline> baselines,
java.io.PrintStream ps)
|
| Methods inherited from class hudson.scm.SCM |
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pucm
public static PucmState pucm
__PUCM_STORED_BASELINES_THRESHOLD
public static final long __PUCM_STORED_BASELINES_THRESHOLD
- See Also:
- Constant Field Values
storedBaselines
public static StoredBaselines storedBaselines
PUCM_LOGGER_STRING
public static final java.lang.String PUCM_LOGGER_STRING
- See Also:
- Constant Field Values
PucmScm
public PucmScm()
- Default constructor, mainly used for unit tests.
PucmScm
public PucmScm(java.lang.String component,
java.lang.String levelToPoll,
java.lang.String loadModule,
java.lang.String stream,
boolean newest,
boolean testing,
java.lang.String buildProject)
- Deprecated. as of 0.3.10
- The constructor is used by Hudson to create the instance of the plugin
needed for a connection to ClearCase. It is annotated with
@DataBoundConstructor to tell Hudson where to put the
information retrieved from the configuration page in the WebUI.
- Parameters:
component - defines the component needed to find baselines.levelToPoll - defines the level to poll ClearCase for.loadModule - tells if we should load all modules or only the ones that are
modifiable.stream - defines the stream needed to find baselines.newest - tells whether we should build only the newest baseline.newerThanRecommended - tells whether we should look at all baselines or only ones
newer than the recommended baseline
PucmScm
@DataBoundConstructor
public PucmScm(java.lang.String component,
java.lang.String levelToPoll,
java.lang.String loadModule,
java.lang.String stream,
boolean newest,
boolean multiSite,
boolean testing,
java.lang.String buildProject)
- The constructor is used by Hudson to create the instance of the plugin
needed for a connection to ClearCase. It is annotated with
@DataBoundConstructor to tell Hudson where to put the
information retrieved from the configuration page in the WebUI.
- Parameters:
component - defines the component needed to find baselines.levelToPoll - defines the level to poll ClearCase for.loadModule - tells if we should load all modules or only the ones that are
modifiable.stream - defines the stream needed to find baselines.newest - tells whether we should build only the newest baseline.newerThanRecommended - tells whether we should look at all baselines or only ones
newer than the recommended baseline
checkout
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
- Specified by:
checkout in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
buildEnvVars
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
java.util.Map<java.lang.String,java.lang.String> env)
- Overrides:
buildEnvVars in class hudson.scm.SCM
compareRemoteRevisionWith
public hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState rstate)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
calcRevisionsFromBuild
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
printBaselines
public void printBaselines(java.util.List<net.praqma.clearcase.ucm.entities.Baseline> baselines,
java.io.PrintStream ps)
getMultiSite
public boolean getMultiSite()
getLevelToPoll
public java.lang.String getLevelToPoll()
getComponent
public java.lang.String getComponent()
getStream
public java.lang.String getStream()
getLoadModule
public java.lang.String getLoadModule()
isNewest
public boolean isNewest()
getStreamObject
public net.praqma.clearcase.ucm.entities.Stream getStreamObject()
getBaseline
@Exported
public net.praqma.clearcase.ucm.entities.Baseline getBaseline()
doPostbuild
@Exported
public boolean doPostbuild()
getBuildProject
public java.lang.String getBuildProject()
Copyright © 2011. All Rights Reserved.