public class Pipeline extends GenericPipeline
VISIBILITY
Constructor and Description |
---|
Pipeline(String name,
hudson.model.AbstractProject firstProject,
hudson.model.AbstractProject lastProject,
List<Stage> stages) |
Pipeline(String name,
hudson.model.AbstractProject firstProject,
hudson.model.AbstractProject lastProject,
String version,
String timestamp,
List<TriggerCause> triggeredBy,
Set<UserInfo> contributors,
List<Stage> stages,
boolean aggregated) |
Modifier and Type | Method and Description |
---|---|
void |
calculateTotalBuildTime() |
Pipeline |
createPipelineAggregated(hudson.model.ItemGroup context,
boolean showAggregatedChanges) |
List<Pipeline> |
createPipelineLatest(int noOfPipelines,
hudson.model.ItemGroup context,
boolean pagingEnabled,
boolean showChanges,
Component component)
Populates and return pipelines for the supplied pipeline prototype with the current status.
|
static Pipeline |
extractPipeline(String name,
hudson.model.AbstractProject<?,?> firstProject) |
static Pipeline |
extractPipeline(String name,
hudson.model.AbstractProject<?,?> firstProject,
hudson.model.AbstractProject<?,?> lastProject,
boolean withUpstream)
Created a pipeline prototype for the supplied first project.
|
List<Change> |
getChanges() |
int |
getCommits() |
Set<UserInfo> |
getContributors() |
hudson.model.AbstractProject |
getFirstProject() |
int |
getId() |
long |
getLastActivity() |
hudson.model.AbstractProject |
getLastProject() |
protected List<Pipeline> |
getPipelines(Iterator it,
hudson.model.ItemGroup context,
int startIndex,
int retrieveSize,
boolean showChanges) |
List<Stage> |
getStages() |
String |
getTimestamp() |
long |
getTotalBuildTime() |
List<TriggerCause> |
getTriggeredBy() |
String |
getVersion() |
boolean |
isAggregated() |
protected Pipeline |
pipelineOf(hudson.model.AbstractBuild firstBuild,
hudson.model.AbstractProject lastProject,
String pipeLineTimestamp,
Set<UserInfo> contributors,
List<Stage> pipelineStages) |
protected List<hudson.model.AbstractBuild> |
resolveBuilds(List<hudson.model.AbstractProject> firstProjects) |
void |
setChanges(List<Change> changes) |
void |
setCommits(int commits) |
boolean |
showUpstream() |
String |
toString() |
getName
public Pipeline(String name, hudson.model.AbstractProject firstProject, hudson.model.AbstractProject lastProject, List<Stage> stages)
public hudson.model.AbstractProject getFirstProject()
public hudson.model.AbstractProject getLastProject()
@Exported public String getVersion()
@Exported public String getTimestamp()
@Exported public boolean isAggregated()
@Exported public int getId()
public void setCommits(int commits)
@Exported public long getTotalBuildTime()
@Exported public int getCommits()
public void calculateTotalBuildTime()
public long getLastActivity()
getLastActivity
in class GenericPipeline
public static Pipeline extractPipeline(String name, hudson.model.AbstractProject<?,?> firstProject, hudson.model.AbstractProject<?,?> lastProject, boolean withUpstream) throws PipelineException
name
- pipeline namefirstProject
- the first project of the pipelinelastProject
- the last project of the pipelinewithUpstream
- whether to resolve the upstream dependency of this pipelinePipelineException
- if unable to successfully resolve the pipeline given the specified parameterspublic static Pipeline extractPipeline(String name, hudson.model.AbstractProject<?,?> firstProject) throws PipelineException
PipelineException
public Pipeline createPipelineAggregated(hudson.model.ItemGroup context, boolean showAggregatedChanges)
public List<Pipeline> createPipelineLatest(int noOfPipelines, hudson.model.ItemGroup context, boolean pagingEnabled, boolean showChanges, Component component) throws PipelineException
noOfPipelines
- number of pipeline instancescontext
- the Jenkins ItemGroup contextpagingEnabled
- whether paging option is enabled for the current viewshowChanges
- whether SCM changes is displayed for the current viewcomponent
- the current component to resolve the latest pipeline forPipelineException
- if unable to successfully resolve the pipeline given the specified parametersprotected List<hudson.model.AbstractBuild> resolveBuilds(List<hudson.model.AbstractProject> firstProjects)
protected List<Pipeline> getPipelines(Iterator it, hudson.model.ItemGroup context, int startIndex, int retrieveSize, boolean showChanges) throws PipelineException
PipelineException
protected Pipeline pipelineOf(hudson.model.AbstractBuild firstBuild, hudson.model.AbstractProject lastProject, String pipeLineTimestamp, Set<UserInfo> contributors, List<Stage> pipelineStages)
public boolean showUpstream()
@Exported public List<TriggerCause> getTriggeredBy()
Copyright © 2016–2020 Diabol AB. All rights reserved.