public class CCUCMScm extends SCM
Modifier and Type | Class and Description |
---|---|
static class |
CCUCMScm.CCUCMScmDescriptor |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static String |
HLINK_DEFAULT |
PERMISSIONS, TAG
Constructor and Description |
---|
CCUCMScm()
Default constructor, mainly used for unit tests.
|
CCUCMScm(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) |
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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
buildEnvVars(AbstractBuild<?,?> build,
Map<String,String> env) |
SCMRevisionState |
calcRevisionsFromBuild(AbstractBuild<?,?> build,
Launcher launcher,
TaskListener listener) |
boolean |
checkout(AbstractBuild<?,?> build,
Launcher launcher,
FilePath workspace,
BuildListener listener,
File changelogFile) |
PollingResult |
compareRemoteRevisionWith(AbstractProject<?,?> project,
Launcher launcher,
FilePath workspace,
TaskListener listener,
SCMRevisionState rstate)
This method polls the version control system to see if there are any
changes in the source code.
|
ChangeLogParser |
createChangeLogParser() |
void |
ensurePublisher(AbstractBuild build) |
void |
generateChangeLog(AbstractBuild<?,?> build,
CCUCMBuildAction state,
BuildListener listener,
File changelogFile,
net.praqma.clearcase.ucm.view.SnapshotView snapshotView)
Generate the change log for poll/sibling mode
|
String |
getBaseline() |
String |
getBaselineValue(AbstractBuild<?,?> build) |
String |
getBuildProject() |
String |
getComponent() |
boolean |
getForceDeliver() |
String |
getHLinkFeedFrom() |
static CCUCMBuildAction |
getLastAction(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(AbstractBuild<?,?> build,
CCUCMBuildAction state,
BuildListener listener)
Initialise the deliver view
|
boolean |
isCreateBaseline() |
boolean |
isDiscard() |
boolean |
isMakeTag() |
boolean |
isRecommend() |
boolean |
isRemoveViewPrivateFiles() |
boolean |
isSetDescription() |
boolean |
isTrimmedChangeSet() |
void |
postCheckout(AbstractBuild<?,?> build,
Launcher launcher,
FilePath workspace,
BuildListener listener) |
void |
printBaselines(List<net.praqma.clearcase.ucm.entities.Baseline> baselines,
PrintStream ps) |
Object |
readResolve() |
void |
resolveBaselineInput(AbstractBuild<?,?> build,
String baselineInput,
CCUCMBuildAction action,
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) |
void |
setStream(String stream) |
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
public static final String HLINK_DEFAULT
public CCUCMScm()
@DataBoundConstructor public CCUCMScm(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)
@Deprecated 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)
public Object readResolve()
public boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout
in class SCM
IOException
InterruptedException
public void postCheckout(AbstractBuild<?,?> build, Launcher launcher, FilePath workspace, BuildListener listener) throws IOException, InterruptedException
postCheckout
in class SCM
IOException
InterruptedException
public void ensurePublisher(AbstractBuild build) throws IOException
IOException
public void setAddPostBuild(boolean addPostBuild)
public void resolveBaselineInput(AbstractBuild<?,?> build, String baselineInput, CCUCMBuildAction action, BuildListener listener) throws net.praqma.clearcase.exceptions.UnableToInitializeEntityException, IOException, InterruptedException
Baseline
parameter and store the information in the
Actionbuild
- The build to look for the baseline inputbaselineInput
- The Special CC_BASELINE environment variableaction
- The action in which we store the baseline specified in the environmentlistener
- Listenernet.praqma.clearcase.exceptions.UnableToInitializeEntityException
- Thrown when cleartool cannot load the resolved input baselineIOException
- Thrown on system error or Jenkins failureInterruptedException
- Thrown on system error or Jenkins failurepublic String getBaselineValue(AbstractBuild<?,?> build)
public net.praqma.clearcase.ucm.view.SnapshotView initializeDeliverView(AbstractBuild<?,?> build, CCUCMBuildAction state, BuildListener listener) throws IOException, InterruptedException
build
- Buildstate
- Statelistener
- ListenerSnapshotView
in which we perform the deliverIOException
- Thrown on system errorInterruptedException
- Thrown on system errorpublic void generateChangeLog(AbstractBuild<?,?> build, CCUCMBuildAction state, BuildListener listener, File changelogFile, net.praqma.clearcase.ucm.view.SnapshotView snapshotView) throws IOException, InterruptedException
build
- Buildstate
- Statelistener
- ListenerchangelogFile
- FilesnapshotView
- Snapshot viewIOException
- Generic system errorInterruptedException
- Generic system errorpublic ChangeLogParser createChangeLogParser()
createChangeLogParser
in class SCM
public void buildEnvVars(AbstractBuild<?,?> build, Map<String,String> env)
buildEnvVars
in class SCM
public PollingResult compareRemoteRevisionWith(AbstractProject<?,?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState rstate) throws IOException, InterruptedException
compareRemoteRevisionWith
in class SCM
project
- Projectlauncher
- Launcherworkspace
- Workspacelistener
- Listenerrstate
- RevisionStatePollingResult
IOException
- Generic system errorInterruptedException
- Generic system errorpublic static CCUCMBuildAction getLastAction(AbstractProject<?,?> project)
CCUCMBuildAction
, that has a valid
Baseline
project
- Projectpublic SCMRevisionState calcRevisionsFromBuild(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class 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 setpublic void setStream(String stream)
stream
- the stream to setCopyright © 2016–2022. All rights reserved.