Skip to content

Commit

Permalink
pref:完善研发商店组件配置文件参数校验 TencentBlueKing#11269
Browse files Browse the repository at this point in the history
  • Loading branch information
Kzhou991 committed Dec 5, 2024
1 parent 75614be commit 2c9f6db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object StoreMessageCode {
const val USER_PULL_FILE_FAIL = "2120041"
// 插件包文件[{0}]不存在,请检查文件所在路径是否正确
const val ATOM_PACKAGE_FILE_NOT_FOUND = "2120042"
const val USER_REPOSITORY_TASK_JSON_FIELD_IS_NOT_SUPPORT = "2120043"//研发商店:插件配置文件[task.json]{0}字段暂时只支持{1},{2},{3},{4}
const val USER_REPOSITORY_TASK_JSON_FIELD_IS_NOT_SUPPORT = "2120043" // 研发商店:插件配置文件[task.json]{0}字段暂时只支持{1},{2},{3},{4}

const val USER_TEMPLATE_VERSION_IS_NOT_FINISH = "2120201" // 研发商店:模板{0}的{1}版本发布未结束,请稍后再试
const val USER_TEMPLATE_RELEASE_STEPS_ERROR = "2120202" // 研发商店:模板发布流程状态变更顺序不正确
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@

package com.tencent.devops.store.atom.service.impl

import com.tencent.devops.common.api.constant.*
import com.tencent.devops.common.api.constant.COMPONENT
import com.tencent.devops.common.api.constant.CommonMessageCode
import com.tencent.devops.common.api.constant.GOLANG
import com.tencent.devops.common.api.constant.INIT_VERSION
import com.tencent.devops.common.api.constant.JAVA
import com.tencent.devops.common.api.constant.KEY_OS
import com.tencent.devops.common.api.constant.KEY_OS_ARCH
import com.tencent.devops.common.api.constant.KEY_OS_NAME
import com.tencent.devops.common.api.constant.NODEJS
import com.tencent.devops.common.api.constant.PYTHON
import com.tencent.devops.common.api.constant.REQUIRED
import com.tencent.devops.common.api.constant.TYPE
import com.tencent.devops.common.api.enums.FrontendTypeEnum
import com.tencent.devops.common.api.exception.ErrorCodeException
import com.tencent.devops.common.api.pojo.Result
Expand Down Expand Up @@ -87,13 +98,12 @@ import com.tencent.devops.store.pojo.common.KEY_TARGET
import com.tencent.devops.store.pojo.common.TASK_JSON_NAME
import com.tencent.devops.store.pojo.common.enums.ReleaseTypeEnum
import com.tencent.devops.store.pojo.common.enums.StoreTypeEnum
import org.apache.commons.lang3.StringUtils
import javax.ws.rs.core.Response
import org.jooq.DSLContext
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
import javax.ws.rs.core.Response

@Suppress("ALL")
@Service
Expand Down Expand Up @@ -381,7 +391,7 @@ class MarketAtomCommonServiceImpl : MarketAtomCommonService {
params = arrayOf(KEY_EXECUTION)
)
}
//pref:完善研发商店组件配置文件参数校验 #11269
// pref:完善研发商店组件配置文件参数校验 #11269
val supportedLanguages = setOf(JAVA, PYTHON, GOLANG, NODEJS)
val language = executionInfoMap[KEY_LANGUAGE]?.let { language ->
when (language) {
Expand Down

0 comments on commit 2c9f6db

Please sign in to comment.