|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.scm.SCM
net.praqma.hudson.scm.CCUCMScm
public class CCUCMScm
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.
Nested Class Summary | |
---|---|
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 String |
HLINK_DEFAULT
|
Fields inherited from class hudson.scm.SCM |
---|
PERMISSIONS, TAG |
Constructor Summary | |
---|---|
CCUCMScm()
Default constructor, mainly used for unit tests. |
|
CCUCMScm(String component,
String loadModule,
boolean newest,
PollingMode mode,
String stream,
String treatUnstable,
String nameTemplate,
boolean forceDeliver,
boolean recommend,
boolean makeTag,
boolean setDescription,
String buildProject,
boolean removeViewPrivateFiles,
boolean trimmedChangeSet,
boolean discard)
|
Method Summary | |
---|---|
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()
|
void |
ensurePublisher(hudson.model.AbstractBuild build)
|
void |
generateChangeLog(hudson.model.AbstractBuild<?,?> build,
CCUCMBuildAction state,
hudson.model.BuildListener listener,
File changelogFile,
net.praqma.clearcase.ucm.view.SnapshotView snapshotView)
Generate the change log for poll/sibling mode |
String |
getBaseline()
|
String |
getBaselineValue(hudson.model.AbstractBuild<?,?> build)
|
String |
getBuildProject()
|
String |
getComponent()
|
boolean |
getForceDeliver()
|
String |
getHLinkFeedFrom()
|
static CCUCMBuildAction |
getLastAction(hudson.model.AbstractProject<?,?> project)
Returns the last CCUCMBuildAction , that has a valid
Baseline |
String |
getLevelToPoll()
|
String |
getLoadModule()
|
PollingMode |
getMode()
|
boolean |
getMultisitePolling()
|
String |
getNameTemplate()
|
String |
getPolling()
|
boolean |
getSlavePolling()
|
String |
getStream()
|
net.praqma.clearcase.ucm.entities.Stream |
getStreamObject()
|
String |
getTreatUnstable()
|
net.praqma.clearcase.ucm.view.SnapshotView |
initializeDeliverView(hudson.model.AbstractBuild<?,?> build,
CCUCMBuildAction state,
hudson.model.BuildListener listener)
Initialize the deliver view |
boolean |
isCreateBaseline()
|
boolean |
isDiscard()
|
boolean |
isMakeTag()
|
boolean |
isRecommend()
|
boolean |
isRemoveViewPrivateFiles()
|
boolean |
isSetDescription()
|
boolean |
isTrimmedChangeSet()
|
void |
postCheckout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener)
|
void |
printBaselines(List<net.praqma.clearcase.ucm.entities.Baseline> baselines,
PrintStream ps)
|
Object |
readResolve()
|
void |
resolveBaselineInput(hudson.model.AbstractBuild<?,?> build,
String baselineInput,
CCUCMBuildAction action,
hudson.model.BuildListener listener)
Resolve the Baseline parameter and store the information in the
Action |
void |
setAddPostBuild(boolean addPostBuild)
|
void |
setDiscard(boolean discard)
|
void |
setMode(PollingMode mode)
|
void |
setMultisitePolling(boolean mp)
|
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 |
---|
public static final String HLINK_DEFAULT
Constructor Detail |
---|
public CCUCMScm()
@DataBoundConstructor public CCUCMScm(String component, String loadModule, boolean newest, PollingMode mode, String stream, String treatUnstable, String nameTemplate, boolean forceDeliver, boolean recommend, boolean makeTag, boolean setDescription, String buildProject, boolean removeViewPrivateFiles, boolean trimmedChangeSet, boolean discard)
Method Detail |
---|
public Object readResolve()
public boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout
in class hudson.scm.SCM
IOException
InterruptedException
public void postCheckout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener) throws IOException, InterruptedException
postCheckout
in class hudson.scm.SCM
IOException
InterruptedException
public void ensurePublisher(hudson.model.AbstractBuild build) throws IOException
IOException
public void setAddPostBuild(boolean addPostBuild)
public void resolveBaselineInput(hudson.model.AbstractBuild<?,?> build, String baselineInput, CCUCMBuildAction action, hudson.model.BuildListener listener) throws net.praqma.clearcase.exceptions.UnableToInitializeEntityException, IOException, InterruptedException
Baseline
parameter and store the information in the
Action
build
- baselineInput
- action
- listener
-
net.praqma.clearcase.exceptions.UnableToInitializeEntityException
CCUCMException
IOException
InterruptedException
public String getBaselineValue(hudson.model.AbstractBuild<?,?> build)
public net.praqma.clearcase.ucm.view.SnapshotView initializeDeliverView(hudson.model.AbstractBuild<?,?> build, CCUCMBuildAction state, hudson.model.BuildListener listener) throws IOException, InterruptedException
IOException
InterruptedException
public void generateChangeLog(hudson.model.AbstractBuild<?,?> build, CCUCMBuildAction state, hudson.model.BuildListener listener, File changelogFile, net.praqma.clearcase.ucm.view.SnapshotView snapshotView) throws IOException, InterruptedException
build
- state
- listener
- changelogFile
- snapshotView
-
IOException
InterruptedException
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,String> env)
buildEnvVars
in class hudson.scm.SCM
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
compareRemoteRevisionWith
in class hudson.scm.SCM
project
- launcher
- workspace
- listener
- rstate
-
IOException
InterruptedException
public static CCUCMBuildAction getLastAction(hudson.model.AbstractProject<?,?> project)
CCUCMBuildAction
, that has a valid
Baseline
project
-
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class hudson.scm.SCM
IOException
InterruptedException
public void printBaselines(List<net.praqma.clearcase.ucm.entities.Baseline> baselines, PrintStream ps)
public String getLevelToPoll()
public String getComponent()
public String getStream()
public String getLoadModule()
public net.praqma.clearcase.ucm.entities.Stream getStreamObject()
@Exported public String getBaseline()
public boolean getSlavePolling()
public String getHLinkFeedFrom()
public boolean getMultisitePolling()
@Exported public String getPolling()
@Exported public String getTreatUnstable()
public String getBuildProject()
public boolean getForceDeliver()
public boolean isTrimmedChangeSet()
public boolean isRemoveViewPrivateFiles()
public boolean isCreateBaseline()
public String getNameTemplate()
public boolean isMakeTag()
public boolean isSetDescription()
public boolean isRecommend()
public void setMultisitePolling(boolean mp)
public boolean isDiscard()
public void setDiscard(boolean discard)
public PollingMode getMode()
public void setMode(PollingMode mode)
mode
- the mode to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |