Skip to content

Commit

Permalink
feat: stage支持质量红线的准入准出 TencentBlueKing#4732 保存变量时不转为string
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed Aug 20, 2021
1 parent 075628c commit ea6b7a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class CheckPauseReviewStageCmd(
}

private fun saveStageReviewParams(stage: PipelineBuildStage) {
val reviewVariables = mutableMapOf<String, String>()
val reviewVariables = mutableMapOf<String, Any>()
// # 4531 遍历全部审核组的参数,后序覆盖前序的同名变量
stage.checkIn?.reviewParams?.forEach {
reviewVariables[it.key] = it.value.toString()
reviewVariables[it.key] = it.value ?: return@forEach
}
if (stage.checkIn?.reviewParams?.isNotEmpty() == true) {
buildVariableService.batchUpdateVariable(
Expand Down

0 comments on commit ea6b7a4

Please sign in to comment.