Skip to content

Commit

Permalink
feat: stage支持质量红线的准入准出 TencentBlueKing#4732 增加准入质量红线控制逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed Aug 8, 2021
1 parent e1d1de9 commit 1df2f01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ const val BS_MANUAL_START_STAGE = "manual_start_stage"
const val BS_CONTAINER_END_SOURCE_PREIX = "CONTAINER_END_"
const val BS_MANUAL_STOP_PAUSE_ATOM = "taskCancel_"
const val BS_STAGE_CANCELED_END_SOURCE = "STAGE_CANCELED_END"
const val BS_STAGE_QUALITY_CHECK_FAIL_END_SOURCE = "STAGE_QUALITY_CHECK_FAIL_END"

const val BS_PAUSE_TASK = "_bkTaskPauseTag_"
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ class PipelineStageService @Autowired constructor(

fun checkQualityFailStage(userId: String, buildStage: PipelineBuildStage) {
with(buildStage) {
val allStageStatus = stageBuildDetailService.stageCheckQualityFail(buildId = buildId, stageId = stageId)
val allStageStatus = stageBuildDetailService.stageCheckQualityFail(
buildId = buildId,
stageId = stageId,
controlOption = controlOption!!,
checkIn = checkIn,
checkOut = checkOut
)
dslContext.transaction { configuration ->
val context = DSL.using(configuration)
pipelineBuildStageDao.updateOptions(
Expand Down

0 comments on commit 1df2f01

Please sign in to comment.