Skip to content

Commit

Permalink
feat: UI方式下的「所有参数满足条件时执行」和「所有参数满足条件时不执行」转为Code 优化 TencentBlueKing#10930
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Sep 19, 2024
1 parent 722ad93 commit c25b2ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ class ContainerTransfer @Autowired(required = false) constructor(

private fun jobIfField(jobControlOption: JobControlOption?): Any? {
return when (jobControlOption?.runCondition) {
JobRunCondition.PREVIOUS_STAGE_SUCCESS -> IfType.SUCCESS.name
JobRunCondition.PREVIOUS_STAGE_FAILED -> IfType.FAILURE.name
JobRunCondition.PREVIOUS_STAGE_CANCEL -> IfType.CANCELED.name
JobRunCondition.CUSTOM_CONDITION_MATCH -> jobControlOption.customCondition
JobRunCondition.CUSTOM_VARIABLE_MATCH -> IfField(
mode = Mode.RUN_WHEN_ALL_PARAMS_MATCH,
Expand Down

0 comments on commit c25b2ba

Please sign in to comment.