com.michelin.cio.hudson.plugins.clearcaseucmbaseline
Class ClearCaseUcmBaselineSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by com.michelin.cio.hudson.plugins.clearcaseucmbaseline.ClearCaseUcmBaselineSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class ClearCaseUcmBaselineSCM
extends hudson.scm.SCM

This class is of no real use and is only there for a "ClearCase UCM baseline" option to be displayed in the "Source Code Management" section of the configuration screen of AbstractProjects.

If you refer to ClearCaseUcmBaselineSCM/config.jelly file, you'll see that there is no possibility to configure this option: This option is just there so that the user is displayed with a message saying that, if he wants to gets his data from a ClearCase UBM baseline, he has to actually add a "ClearCase UCM baseline" build parameter to get the real configuration fields (as defined in ClearCaseUcmBaselineParameterDefinition).

Author:
Romain Seguy (http://davadoc.deviantart.com)
See Also:
ClearCaseUcmBaselineParameterDefinition

Nested Class Summary
static class ClearCaseUcmBaselineSCM.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static java.lang.String CLEARCASE_BASELINE_ENVSTR
           
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ClearCaseUcmBaselineSCM()
           
 
Method Summary
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab, hudson.Launcher lnchr, hudson.model.TaskListener tl)
           
 boolean checkout(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, java.io.File changelogFile)
          This method does nothing except checking that a "ClearCase UCM baseline" parameter has been defined for the job (it not, the build will fail).
protected  hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> ap, hudson.Launcher lnchr, hudson.FilePath fp, hudson.model.TaskListener tl, hudson.scm.SCMRevisionState scmrs)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 ClearCaseUcmBaselineSCM.DescriptorImpl getDescriptor()
           
 boolean pollChanges(hudson.model.AbstractProject project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
          Deprecated. 
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEARCASE_BASELINE_ENVSTR

public static final java.lang.String CLEARCASE_BASELINE_ENVSTR
See Also:
Constant Field Values
Constructor Detail

ClearCaseUcmBaselineSCM

@DataBoundConstructor
public ClearCaseUcmBaselineSCM()
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
This method does nothing except checking that a "ClearCase UCM baseline" parameter has been defined for the job (it not, the build will fail).

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

getDescriptor

public ClearCaseUcmBaselineSCM.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM

pollChanges

@Deprecated
public boolean pollChanges(hudson.model.AbstractProject project,
                                      hudson.Launcher launcher,
                                      hudson.FilePath workspace,
                                      hudson.model.TaskListener listener)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Deprecated. 

Overrides:
pollChanges in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab,
                                                          hudson.Launcher lnchr,
                                                          hudson.model.TaskListener tl)
                                                   throws java.io.IOException,
                                                          java.lang.InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException

compareRemoteRevisionWith

protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> ap,
                                                             hudson.Launcher lnchr,
                                                             hudson.FilePath fp,
                                                             hudson.model.TaskListener tl,
                                                             hudson.scm.SCMRevisionState scmrs)
                                                      throws java.io.IOException,
                                                             java.lang.InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2011. All Rights Reserved.