Skip to content

Commit

Permalink
feat:新建/编辑流水线支持以 Code 方式编排流水线 TencentBlueKing#8125 core
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Oct 16, 2023
1 parent 8cd7212 commit 95574a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ class ModelTransfer @Autowired constructor(

private fun makeNoticesV3(setting: PipelineSetting): List<PacNotices> {
val res = mutableListOf<PacNotices>()
setting.successSubscriptionList?.plus(setting.successSubscription)?.forEach {
setting.successSubscriptionList?.ifEmpty { listOf(setting.successSubscription) }?.forEach {
if (it.types.isNotEmpty()) {
val notice = PacNotices(it, IfType.SUCCESS.name)
res.add(prepareYamlGroups(setting.projectId, notice))
}
}
setting.failSubscriptionList?.plus(setting.failSubscription)?.forEach {
setting.failSubscriptionList?.ifEmpty { listOf(setting.failSubscription) }?.forEach {
if (it.types.isNotEmpty()) {
val notice = PacNotices(it, IfType.FAILURE.name)
res.add(prepareYamlGroups(setting.projectId, notice))
Expand Down

0 comments on commit 95574a8

Please sign in to comment.