From 125042f927e069483f24791fb9f84ffd19b05370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=9B=E5=85=AE?= Date: Fri, 12 Jun 2026 07:12:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=8D=E4=BD=8E=20Jenkins=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E7=A9=BA=E6=89=AB=E6=8F=8F=E5=AE=A1=E8=AE=A1=E5=99=AA?= =?UTF-8?q?=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - deploy-runs: 自动同步无候选、无同步结果、无失败时不再写入成功 tick 审计\n- 保留存在候选或异常时的 Jenkins 同步审计可观测性 --- src/deploy-runs/jenkins-sync-scheduler.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/deploy-runs/jenkins-sync-scheduler.service.ts b/src/deploy-runs/jenkins-sync-scheduler.service.ts index 7371118..31249db 100644 --- a/src/deploy-runs/jenkins-sync-scheduler.service.ts +++ b/src/deploy-runs/jenkins-sync-scheduler.service.ts @@ -186,6 +186,14 @@ export class JenkinsSyncSchedulerService try { const summary = await this.deployRunsService.syncJenkinsRuns(); + const hasObservableWork = + summary.totalCandidates > 0 || + summary.syncedRuns.length > 0 || + summary.failedRuns.length > 0; + + if (!hasObservableWork) { + return; + } await this.auditService.record({ action: 'JENKINS_AUTO_SYNC_TICK_COMPLETED',