net.praqma.hudson.scm
Class PucmScm

java.lang.Object
  extended by hudson.scm.SCM
      extended by net.praqma.hudson.scm.PucmScm
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class PucmScm
extends hudson.scm.SCM

CC4HClass 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 S�rensen, Margit Bennetzen

Nested Class Summary
static class PucmScm.PucmScmDescriptor
          This class is used to describe the plugin to Hudson
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static long __PUCM_STORED_BASELINES_THRESHOLD
           
static PucmState pucm
           
static java.lang.String PUCM_LOGGER_STRING
           
static StoredBaselines storedBaselines
           
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
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
 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 baseline)
           
 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()
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, 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
 

Field Detail

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
Constructor Detail

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
Method Detail

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

compareRemoteRevisionWith

public hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
                                                          hudson.Launcher launcher,
                                                          hudson.FilePath workspace,
                                                          hudson.model.TaskListener listener,
                                                          hudson.scm.SCMRevisionState baseline)
                                                   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

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.