From 5123d85e42c40bd5f3ba1213a6e489e84bb395fd Mon Sep 17 00:00:00 2001 From: yjieliang Date: Mon, 23 Oct 2023 10:02:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B8=8C=E6=9C=9B=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=88=86=E6=94=AF=E8=BF=9B=E8=A1=8C=E4=B8=8A=E6=9E=B6=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=20#4780?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tencent/devops/store/service/atom/impl/AtomServiceImpl.kt | 2 +- .../devops/store/service/atom/impl/MarketAtomServiceImpl.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomServiceImpl.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomServiceImpl.kt index d1bae9d30bc..04a0ac21783 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomServiceImpl.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomServiceImpl.kt @@ -714,7 +714,7 @@ abstract class AtomServiceImpl @Autowired constructor() : AtomService { versionName = "$atomVersion ($atomStatusMsg)" latestVersionName = "$latestVersionName ($atomStatusMsg)" } - if (tmpVersionPrefix != versionPrefix && !atomVersion.contains(TEST)) { + if (tmpVersionPrefix != versionPrefix && !atomVersion.startsWith(TEST)) { versionList.add(VersionInfo(latestVersionName, "$versionPrefix*")) // 添加大版本号的通用最新模式(如1.*) tmpVersionPrefix = versionPrefix } diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/MarketAtomServiceImpl.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/MarketAtomServiceImpl.kt index 699c17e3f40..4f9342f83f3 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/MarketAtomServiceImpl.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/MarketAtomServiceImpl.kt @@ -585,7 +585,7 @@ abstract class MarketAtomServiceImpl @Autowired constructor() : MarketAtomServic var processingVersionInfoMap: MutableMap>? = null processingAtomRecords?.forEach { processingAtomRecord -> if (processingAtomRecord.version == INIT_VERSION || processingAtomRecord.version.isNullOrBlank() || - processingAtomRecord.version.contains(TEST)) { + processingAtomRecord.version.startsWith(TEST)) { return@forEach } if (processingVersionInfoMap == null) {