diff --git a/src/backend/ci/core/common/common-pipeline-yaml/src/main/kotlin/com/tencent/devops/process/yaml/transfer/ContainerTransfer.kt b/src/backend/ci/core/common/common-pipeline-yaml/src/main/kotlin/com/tencent/devops/process/yaml/transfer/ContainerTransfer.kt index b99fb572a33..91afd4e7e5d 100644 --- a/src/backend/ci/core/common/common-pipeline-yaml/src/main/kotlin/com/tencent/devops/process/yaml/transfer/ContainerTransfer.kt +++ b/src/backend/ci/core/common/common-pipeline-yaml/src/main/kotlin/com/tencent/devops/process/yaml/transfer/ContainerTransfer.kt @@ -415,11 +415,11 @@ class ContainerTransfer @Autowired(required = false) constructor( } private fun getMutexYaml(resource: MutexGroup?): Mutex? { - if (resource?.mutexGroupName.isNullOrBlank()) { + if (resource?.mutexGroupName.isNullOrBlank() || resource?.enable != true) { return null } return Mutex( - label = resource?.mutexGroupName!!, + label = resource.mutexGroupName!!, queueLength = if (resource.queueEnable) { resource.queue } else {