Search in sources :

Example 1 with PipelineJsonPresentationModel

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);
}
Also used : PipelinePauseInfo(com.thoughtworks.go.domain.PipelinePauseInfo) StageJsonPresentationModel(com.thoughtworks.go.server.presentation.models.StageJsonPresentationModel) CaseInsensitiveString(com.thoughtworks.go.config.CaseInsensitiveString) PipelineJsonPresentationModel(com.thoughtworks.go.server.presentation.models.PipelineJsonPresentationModel) CaseInsensitiveString(com.thoughtworks.go.config.CaseInsensitiveString)

Aggregations

CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)1 PipelinePauseInfo (com.thoughtworks.go.domain.PipelinePauseInfo)1 PipelineJsonPresentationModel (com.thoughtworks.go.server.presentation.models.PipelineJsonPresentationModel)1 StageJsonPresentationModel (com.thoughtworks.go.server.presentation.models.StageJsonPresentationModel)1