Skip to content

Commit

Permalink
feat:新建/编辑流水线时支持调试流水线 TencentBlueKing#8164 修复构建历史区分源材料分支和触发分支搜索
Browse files Browse the repository at this point in the history
1. 构建历史支持源材料和触发材料搜索
2. 触发分支和源材料分支支持下来搜索
  • Loading branch information
mingshewhe committed Aug 1, 2024
1 parent 69a79c6 commit 9c2162c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ class PipelineBuildDao {

if (!triggerBranch.isNullOrBlank()) {
where.and(
JooqUtils.jsonExtract(WEBHOOK_INFO, "\$[*].webhookBranch", lower = true)
JooqUtils.jsonExtract(WEBHOOK_INFO, "\$.webhookBranch", lower = true)
.like("%${triggerBranch.lowercase()}%")
)
}
Expand Down Expand Up @@ -1404,7 +1404,7 @@ class PipelineBuildDao {

if (!triggerBranch.isNullOrBlank()) {
where.and(
JooqUtils.jsonExtract(WEBHOOK_INFO, "\$[*].webhookBranch", lower = true)
JooqUtils.jsonExtract(WEBHOOK_INFO, "\$.webhookBranch", lower = true)
.like("%${triggerBranch.lowercase()}%")
)
}
Expand Down

0 comments on commit 9c2162c

Please sign in to comment.