diff --git a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineWebhookService.kt b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineWebhookService.kt index 765d0927a6f..90a1304aacc 100644 --- a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineWebhookService.kt +++ b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineWebhookService.kt @@ -732,7 +732,7 @@ class PipelineWebhookService @Autowired constructor( if (webhook.taskId.isNullOrBlank()) return@webhook val element = elementMap[webhook.taskId] ?: return@webhook val webhookElementParams = getElementRepositoryConfig(element, variable = params) - ?: run{ + ?: run { logger.info("webhook not find match element|${webhook.id}") return@webhook } diff --git a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/trigger/PipelineTriggerEventService.kt b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/trigger/PipelineTriggerEventService.kt index 662454cdd33..6977e28b424 100644 --- a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/trigger/PipelineTriggerEventService.kt +++ b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/trigger/PipelineTriggerEventService.kt @@ -159,7 +159,7 @@ class PipelineTriggerEventService @Autowired constructor( offset = sqlLimit.offset ).map { it.eventDesc = it.getI18nEventDesc(language) - it.reason = getI18nReason(it.reason,language) + it.reason = getI18nReason(it.reason, language) it } return SQLPage(count = count, records = records) diff --git a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/WebhookRequestService.kt b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/WebhookRequestService.kt index bb7ce05b698..ccb51348e45 100644 --- a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/WebhookRequestService.kt +++ b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/WebhookRequestService.kt @@ -52,7 +52,7 @@ class WebhookRequestService( private val webhookEventFactory: WebhookEventFactory, private val webhookTriggerService: WebhookTriggerService, private val dslContext: DSLContext, - private val pipelineTriggerEventDao: PipelineTriggerEventDao, + private val pipelineTriggerEventDao: PipelineTriggerEventDao ) { companion object { diff --git a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/listener/WebhookEventListener.kt b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/listener/WebhookEventListener.kt index a0e6b1bc5b7..269eed9608c 100644 --- a/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/listener/WebhookEventListener.kt +++ b/src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/listener/WebhookEventListener.kt @@ -237,7 +237,7 @@ class WebhookEventListener constructor( MDC.put(TraceTag.BIZID, TraceTag.buildBiz()) } } - logger.info("Receive ReplayWebhookEvent from MQ [replay|${replayEvent}]") + logger.info("Receive ReplayWebhookEvent from MQ [replay|$replayEvent]") var result = false try { webhookRequestService.handleReplay(replayEvent = replayEvent) @@ -262,7 +262,6 @@ class WebhookEventListener constructor( ) ) } - } MDC.remove(TraceTag.BIZID) }