Skip to content

Commit

Permalink
Merge pull request #9613 from royalhuang/issue_9611
Browse files Browse the repository at this point in the history
bug: stage审核取消兼容数据处理 #9611
  • Loading branch information
bkci-bot authored Nov 3, 2023
2 parents d864689 + 00d6d81 commit 96f27c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,28 @@ data class StageControlOption(
val enable: Boolean = true, // 是否启用该阶段
@ApiModelProperty("运行条件", required = false)
val runCondition: StageRunCondition = StageRunCondition.AFTER_LAST_FINISHED, // 运行条件
@ApiModelProperty("自定义变量", required = false)
val customVariables: List<NameAndValue>? = emptyList(), // 自定义变量
@ApiModelProperty("自定义条件", required = false)
val customCondition: String? = null, // 自定义条件

// 废弃旧数据字段
@ApiModelProperty("是否人工触发", required = false)
@Deprecated("被StagePauseCheck.manualTrigger代替")
val manualTrigger: Boolean? = false,
@ApiModelProperty("可触发用户,支持引用变量", required = false)
@Deprecated("被StagePauseCheck.reviewGroups代替")
var triggerUsers: List<String>? = null, // 可触发用户,支持引用变量
@ApiModelProperty("已通过审核", required = false)
@Deprecated("被StagePauseCheck.status代替")
var triggered: Boolean? = null, // 已通过审核
@ApiModelProperty("等待审核的超时时间", required = false)
@Deprecated("被StagePauseCheck.timeout代替")
val timeout: Int? = null, // 等待审核的超时时间
@ApiModelProperty("自定义变量", required = false)
val customVariables: List<NameAndValue>? = emptyList(), // 自定义变量
@ApiModelProperty("自定义条件", required = false)
val customCondition: String? = null, // 自定义条件
@ApiModelProperty("审核变量", required = false)
@Deprecated("被StagePauseCheck.reviewParams代替")
var reviewParams: List<ManualReviewParam>? = null, // 审核变量
@ApiModelProperty("审核说明", required = false)
@Deprecated("被StagePauseCheck.reviewDesc代替")
var reviewDesc: String? = null // 审核说明
)
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ open class DefaultModelCheckPlugin constructor(
}

private fun Stage.checkStageReviewers() {
if (stageControlOption?.manualTrigger != true && checkIn?.manualTrigger != true) {
if (checkIn?.manualTrigger != true) {
return
}
resetBuildOption()
Expand Down

0 comments on commit 96f27c8

Please sign in to comment.