Skip to content

Commit

Permalink
feat: 流水线新增构建矩阵 TencentBlueKing#4518
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed Nov 24, 2021
1 parent 501e4d2 commit b2bcbae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import com.tencent.devops.process.engine.control.command.stage.StageCmd
import com.tencent.devops.process.engine.control.command.stage.StageContext
import com.tencent.devops.process.engine.service.PipelineContainerService
import com.tencent.devops.process.engine.service.detail.BaseBuildDetailService
import com.tencent.devops.process.engine.service.detail.ContainerBuildDetailService
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service

Expand All @@ -42,7 +43,7 @@ import org.springframework.stereotype.Service
*/
@Service
class InitializeContainerStageCmd(
private val buildDetailService: BaseBuildDetailService,
private val containerBuildDetailService: ContainerBuildDetailService,
private val pipelineContainerService: PipelineContainerService,
private val pipelineEventDispatcher: PipelineEventDispatcher
) : StageCmd {
Expand All @@ -67,7 +68,7 @@ class InitializeContainerStageCmd(
private fun generateMatrixGroup(commandContext: StageContext): Int {
val event = commandContext.event
var newCount = 0
val model = buildDetailService.getBuildModel(event.buildId) ?: return newCount
val model = containerBuildDetailService.getBuildModel(event.buildId) ?: return newCount

// #4518 根据当前上下文对每一个构建矩阵进行裂变
model.stages.forEach { stage ->
Expand Down

0 comments on commit b2bcbae

Please sign in to comment.