use of com.thoughtworks.go.server.presentation.models.PipelineJsonPresentationModel in project gocd by gocd.
the class CachedCurrentActivityService method pipelineModel.
private PipelineJsonPresentationModel pipelineModel(PipelineConfig pipelineConfig) {
String name = CaseInsensitiveString.str(pipelineConfig.name());
PipelinePauseInfo pauseInfo = pipelinePauseService.pipelinePauseInfo(name);
boolean forcedBuild = pipelineScheduleQueue.hasForcedBuildCause(name);
List<StageJsonPresentationModel> stageModels = stagesModel(pipelineConfig);
return new PipelineJsonPresentationModel(goConfigService.findGroupNameByPipeline(new CaseInsensitiveString(name)), name, pauseInfo, forcedBuild, stageModels);
}
Aggregations