public class PollSubscribeMode extends PollingMode implements BaselineCreationEnabled, NewestFeatureToggle
Modifier and Type | Class and Description |
---|---|
static class |
PollSubscribeMode.PollSubscribeDescriptor |
polling
Constructor and Description |
---|
PollSubscribeMode(String levelToPoll,
List<ComponentSelectionCriteriaRequirement> componentsToMonitor,
List<JobNameRequirement> jobsToMonitor) |
Modifier and Type | Method and Description |
---|---|
hudson.model.Result |
determineResult(hudson.FilePath workspace,
List<net.praqma.clearcase.ucm.entities.Baseline> bls,
boolean slavePolling)
Determine the result of this subscribe action that triggered the build.
|
List<net.praqma.clearcase.ucm.entities.Baseline> |
getBaselinesToConsider(net.praqma.clearcase.ucm.entities.Baseline bl,
hudson.FilePath workspace,
boolean slavePolling)
First filter.
|
List<ComponentSelectionCriteriaRequirement> |
getComponentsToMonitor() |
List<JobNameRequirement> |
getJobsToMonitor() |
boolean |
isCascadePromotion() |
boolean |
isCreateBaseline() |
boolean |
isNewest() |
hudson.FilePath.FileCallable<Status> |
postBuildFinalizer(hudson.model.AbstractBuild<?,?> b,
hudson.model.BuildListener listener,
Status buildStatus)
At this point we should have all the information stored in our actions to perform the necessary
actions after the build has completed.
|
void |
setCascadePromotion(boolean cascadePromotion) |
void |
setComponentsToMonitor(List<ComponentSelectionCriteriaRequirement> componentsToMonitor) |
void |
setJobsToMonitor(List<JobNameRequirement> jobsToMonitor) |
void |
setNewest(boolean newest) |
all, createBaselineEnabled, getComponent, getDescriptor, getLevelToPoll, getPolling, getPromotionLevel, isPromotionSkipped, setComponent, setLevelToPoll, setPolling
@DataBoundConstructor public PollSubscribeMode(String levelToPoll, List<ComponentSelectionCriteriaRequirement> componentsToMonitor, List<JobNameRequirement> jobsToMonitor)
@DataBoundSetter public void setNewest(boolean newest)
public boolean isNewest()
isNewest
in interface NewestFeatureToggle
@DataBoundSetter public void setCascadePromotion(boolean cascadePromotion)
public boolean isCascadePromotion()
public List<ComponentSelectionCriteriaRequirement> getComponentsToMonitor()
public void setComponentsToMonitor(List<ComponentSelectionCriteriaRequirement> componentsToMonitor)
componentsToMonitor
- the componentsToMonitor to setpublic List<JobNameRequirement> getJobsToMonitor()
public void setJobsToMonitor(List<JobNameRequirement> jobsToMonitor)
jobsToMonitor
- the jobsToMonitor to setpublic hudson.model.Result determineResult(hudson.FilePath workspace, List<net.praqma.clearcase.ucm.entities.Baseline> bls, boolean slavePolling) throws IOException, InterruptedException
workspace
- Workspacebls
- BaselineslavePolling
- Slave polling enabled. (Allow polling on slaves)IOException
- Generic system errorInterruptedException
- Generic system errorpublic List<net.praqma.clearcase.ucm.entities.Baseline> getBaselinesToConsider(net.praqma.clearcase.ucm.entities.Baseline bl, hudson.FilePath workspace, boolean slavePolling) throws net.praqma.clearcase.exceptions.UnableToInitializeEntityException, net.praqma.clearcase.exceptions.CleartoolException, IOException, InterruptedException
bl
- Baselineworkspace
- WorkspaceslavePolling
- Allow polling on slavesBaseline
s under the chosen componentsnet.praqma.clearcase.exceptions.UnableToInitializeEntityException
- Cleartool errornet.praqma.clearcase.exceptions.CleartoolException
- Cleartool errorIOException
- System errorsInterruptedException
- System errorspublic boolean isCreateBaseline()
isCreateBaseline
in interface BaselineCreationEnabled
public hudson.FilePath.FileCallable<Status> postBuildFinalizer(hudson.model.AbstractBuild<?,?> b, hudson.model.BuildListener listener, Status buildStatus)
PollingMode
postBuildFinalizer
in class PollingMode
b
- Buildlistener
- ListenerbuildStatus
- Build statusCopyright © 2004-2016. All Rights Reserved.