net.praqma.hudson.scm
Class CCUCMScm

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

public class CCUCMScm
extends hudson.scm.SCM

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 Class Summary
 class CCUCMScm.AscendingDateSort
           
static class CCUCMScm.CCUCMScmDescriptor
          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 __CCUCM_STORED_BASELINES_THRESHOLD
           
static CCUCMState ccucm
           
static String CCUCM_LOGGER_STRING
           
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
CCUCMScm()
          Default constructor, mainly used for unit tests.
CCUCMScm(String component, String levelToPoll, String loadModule, boolean newest, String polling, String stream, String treatUnstable, boolean createBaseline, String nameTemplate, boolean forceDeliver, boolean recommend, boolean makeTag, boolean setDescription, String buildProject)
           
 
Method Summary
 boolean beginDeliver(hudson.model.AbstractBuild<?,?> build, CCUCMState.State state, hudson.model.BuildListener listener, File changelogFile)
           
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,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, File changelogFile)
           
 hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState rstate)
          This method polls the version control system to see if there are any changes in the source code.
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 boolean doBaseline(hudson.model.AbstractBuild<?,?> build, String baselineInput, CCUCMState.State state, hudson.model.BuildListener listener)
           
 boolean doPostbuild()
           
 List<net.praqma.clearcase.ucm.entities.Baseline> filterBuildingBaselines(hudson.model.AbstractProject<?,?> project, List<net.praqma.clearcase.ucm.entities.Baseline> baselines)
          Discards baselines being build
 net.praqma.util.debug.appenders.Appender getAppender()
           
 String getBaseline()
           
 String getBaselineName()
           
 String getBaselineValue(hudson.model.AbstractBuild<?,?> build)
           
 String getBuildProject()
           
 String getComponent()
           
 boolean getForceDeliver()
           
 String getLevelToPoll()
           
 String getLoadModule()
           
 boolean getMultisitePolling()
           
 String getNameTemplate()
           
 String getPolling()
           
 boolean getSlavePolling()
           
 String getStream()
           
 net.praqma.clearcase.ucm.entities.Stream getStreamObject()
           
 String getTreatUnstable()
           
 boolean isCreateBaseline()
           
 boolean isMakeTag()
           
 boolean isRecommend()
           
 boolean isSetDescription()
           
 void printBaselines(List<net.praqma.clearcase.ucm.entities.Baseline> baselines, PrintStream ps)
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, 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

ccucm

public static CCUCMState ccucm

__CCUCM_STORED_BASELINES_THRESHOLD

public static final long __CCUCM_STORED_BASELINES_THRESHOLD
See Also:
Constant Field Values

CCUCM_LOGGER_STRING

public static final String CCUCM_LOGGER_STRING
See Also:
Constant Field Values
Constructor Detail

CCUCMScm

public CCUCMScm()
Default constructor, mainly used for unit tests.


CCUCMScm

@DataBoundConstructor
public CCUCMScm(String component,
                                     String levelToPoll,
                                     String loadModule,
                                     boolean newest,
                                     String polling,
                                     String stream,
                                     String treatUnstable,
                                     boolean createBaseline,
                                     String nameTemplate,
                                     boolean forceDeliver,
                                     boolean recommend,
                                     boolean makeTag,
                                     boolean setDescription,
                                     String buildProject)
Parameters:
component -
levelToPoll -
loadModule -
newest -
polling -
stream -
versionFrom -
nameTemplate -
buildProject -
multiSite -
Method Detail

checkout

public boolean checkout(hudson.model.AbstractBuild<?,?> build,
                        hudson.Launcher launcher,
                        hudson.FilePath workspace,
                        hudson.model.BuildListener listener,
                        File changelogFile)
                 throws IOException,
                        InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

doBaseline

public boolean doBaseline(hudson.model.AbstractBuild<?,?> build,
                          String baselineInput,
                          CCUCMState.State state,
                          hudson.model.BuildListener listener)

getBaselineValue

public String getBaselineValue(hudson.model.AbstractBuild<?,?> build)

beginDeliver

public boolean beginDeliver(hudson.model.AbstractBuild<?,?> build,
                            CCUCMState.State state,
                            hudson.model.BuildListener listener,
                            File changelogFile)

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Specified by:
createChangeLogParser in class hudson.scm.SCM

getBaselineName

public String getBaselineName()

buildEnvVars

public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
                         Map<String,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 IOException,
                                                          InterruptedException
This method polls the version control system to see if there are any changes in the source code.

Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException

filterBuildingBaselines

public List<net.praqma.clearcase.ucm.entities.Baseline> filterBuildingBaselines(hudson.model.AbstractProject<?,?> project,
                                                                                List<net.praqma.clearcase.ucm.entities.Baseline> baselines)
                                                                         throws ScmException
Discards baselines being build

Parameters:
project -
baselines -
Returns:
Throws:
ScmException

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.Launcher launcher,
                                                          hudson.model.TaskListener listener)
                                                   throws IOException,
                                                          InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
IOException
InterruptedException

printBaselines

public void printBaselines(List<net.praqma.clearcase.ucm.entities.Baseline> baselines,
                           PrintStream ps)

getLevelToPoll

public String getLevelToPoll()

getComponent

public String getComponent()

getStream

public String getStream()

getLoadModule

public String getLoadModule()

getStreamObject

public net.praqma.clearcase.ucm.entities.Stream getStreamObject()

getBaseline

@Exported
public String getBaseline()

getSlavePolling

public boolean getSlavePolling()

getMultisitePolling

public boolean getMultisitePolling()

getPolling

@Exported
public String getPolling()

getTreatUnstable

@Exported
public String getTreatUnstable()

doPostbuild

@Exported
public boolean doPostbuild()

getBuildProject

public String getBuildProject()

getForceDeliver

public boolean getForceDeliver()

isCreateBaseline

public boolean isCreateBaseline()

getNameTemplate

public String getNameTemplate()

isMakeTag

public boolean isMakeTag()

isSetDescription

public boolean isSetDescription()

isRecommend

public boolean isRecommend()

getAppender

public net.praqma.util.debug.appenders.Appender getAppender()


Copyright © 2004-2012. All Rights Reserved.