Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#5421 from tangruotian/issue_5338
Browse files Browse the repository at this point in the history
feat: 研发商店插件增加输出参数和质量红线的展示 TencentBlueKing#5338
  • Loading branch information
irwinsun authored Oct 28, 2021
2 parents b103582 + 066442e commit cf6d31a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const val NAME = "name" // 名称
const val FAIL_NUM = "failNum" // 失败数量
const val VERSION = "version" // 版本号
const val TYPE = "type" // 类型
const val DESC = "desc" // 插件字段描述
const val OUTPUT_DESC = "description" // 插件输出字段描述
const val COMPONENT = "component" // 组件
const val PIPELINE_URL = "pipelineUrl" // 流水线链接
const val ARTIFACT = "artifact" // 构件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import com.tencent.devops.common.api.constant.AND
import com.tencent.devops.common.api.constant.CommonMessageCode
import com.tencent.devops.common.api.constant.DANG
import com.tencent.devops.common.api.constant.DEFAULT
import com.tencent.devops.common.api.constant.DESC
import com.tencent.devops.common.api.constant.OUTPUT_DESC
import com.tencent.devops.common.api.constant.MULTIPLE_SELECTOR
import com.tencent.devops.common.api.constant.NO_LABEL
import com.tencent.devops.common.api.constant.OPTIONS
Expand Down Expand Up @@ -942,10 +942,10 @@ abstract class MarketAtomServiceImpl @Autowired constructor() : MarketAtomServic
val outputDataObj = outputDataMap[outputKey] as Map<String, Any>
AtomOutput(
name = outputKey,
desc = if (outputDataObj[DESC] == null) {
desc = if (outputDataObj[OUTPUT_DESC] == null) {
null
} else {
outputDataObj[DESC].toString()
outputDataObj[OUTPUT_DESC].toString()
}
)
} ?: emptyList()
Expand Down

0 comments on commit cf6d31a

Please sign in to comment.