diff --git a/src/backend/ci/core/process/biz-engine/src/main/kotlin/com/tencent/devops/process/engine/control/command/stage/impl/UpdateStateForStageCmdFinally.kt b/src/backend/ci/core/process/biz-engine/src/main/kotlin/com/tencent/devops/process/engine/control/command/stage/impl/UpdateStateForStageCmdFinally.kt index c3e6ec53fe3..c3716095780 100644 --- a/src/backend/ci/core/process/biz-engine/src/main/kotlin/com/tencent/devops/process/engine/control/command/stage/impl/UpdateStateForStageCmdFinally.kt +++ b/src/backend/ci/core/process/biz-engine/src/main/kotlin/com/tencent/devops/process/engine/control/command/stage/impl/UpdateStateForStageCmdFinally.kt @@ -73,7 +73,8 @@ class UpdateStateForStageCmdFinally( } // #3138 stage cancel 不在此处理 更新状态&模型 @see PipelineStageService.cancelStage - if (event.source != BS_STAGE_CANCELED_END_SOURCE) { + if (event.source != BS_STAGE_CANCELED_END_SOURCE && + commandContext.buildStatus != BuildStatus.QUALITY_CHECK_FAIL) { updateStageStatus(commandContext = commandContext) }