From 8a1bac643e1db1ff7542e49d0dbee8d7f449b061 Mon Sep 17 00:00:00 2001 From: yjieliang Date: Fri, 10 Jan 2025 15:49:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B5=81=E6=B0=B4=E7=BA=BF?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=92=8C=E6=9E=84=E5=BB=BA=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E9=85=8D=E7=BD=AE=E7=95=8C=E9=9D=A2=E6=95=8F?= =?UTF-8?q?=E6=84=9F=E5=AD=97=E6=AE=B5=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20#11019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops/process/engine/service/PipelineInfoService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineInfoService.kt b/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineInfoService.kt index 6700c7f37f7..63d14f86911 100644 --- a/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineInfoService.kt +++ b/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineInfoService.kt @@ -34,6 +34,7 @@ import com.tencent.devops.common.pipeline.pojo.element.market.MarketBuildAtomEle import com.tencent.devops.common.pipeline.pojo.element.market.MarketBuildLessAtomElement import com.tencent.devops.common.redis.RedisOperation import com.tencent.devops.process.engine.dao.PipelineInfoDao +import com.tencent.devops.store.pojo.common.ATOM_POST_VERSION_TEST_FLAG_KEY_PREFIX import com.tencent.devops.store.pojo.common.ATOM_SENSITIVE_PARAM_KEY_PREFIX import com.tencent.devops.store.pojo.common.STORE_NORMAL_PROJECT_RUN_INFO_KEY_PREFIX import com.tencent.devops.store.pojo.common.enums.StoreTypeEnum @@ -59,7 +60,10 @@ class PipelineInfoService @Autowired constructor( val version = element.version val hashKey = if (version.contains(".*")) { var latestVersion: String? = null - if (projectTestAtomCodes.contains(atomCode)) { + val atomVersionTestFlag = + redisOperation.hget("$ATOM_POST_VERSION_TEST_FLAG_KEY_PREFIX:$atomCode", version) + // 项目下调试插件处理 + if (projectTestAtomCodes.contains(atomCode) && (atomVersionTestFlag == "true")) { latestVersion = version } if (latestVersion.isNullOrBlank()) {