fix: openapi Element 的动态子类加载不全 #6387
Labels
area/ci/api
CI OpenAPI issue
doing
开发中
done
Production environment in tencent has been deploy
for gray
UAT environment in tencent has been deploy
for test
Test environment in tencent has been deploy
kind/bug
程序故障Bug,漏洞
kind/version/sample
所属开源版本特性
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
sample/passed
开源验证通过
streams/done
stream 生产部署成功
streams/for gray
stream 灰度环境部署成功
What happened:
流水线中带有构件类插件时,通过openAPI接口查询会失败。
curl -XGET http://bk-ci.service.consul/ms/openapi/api/apigw/v3/projects/demo/pipelines/p-9f51d27d06804fc8a8abc9ce761d6bc8/builds/b-f879b107639b47ddbb9c63d6ac17ef41/detail -H "Content-Type: application/json" -H "X-DEVOPS-UID: admin"
{
"status" : 500,
"message" : "Could not resolve type id 'singleArchive' as a subtype of
com.tencent.devops.common.pipeline.pojo.element.Element
: known type ids = [CODE_GIT, CODE_GITLAB, CODE_SVN, GITHUB, codeGitGenericWebHookTrigger, codeGitWebHookTrigger, codeGithubWebHookTrigger, codeGitlabWebHookTrigger, codeP4WebHookTrigger, codeSVNWebHookTrigger, codeTGitWebHookTrigger, linuxCodeCCScript, linuxPaasCodeCCScript, linuxScript, manualReviewUserTask, manualTrigger, marketBuild, marketBuildLess, marketCheckImage, matrixStatus, qualityGateInTask, qualityGateOutTask, remoteTrigger, subPipelineCall, timerTrigger, windowsScript] (for POJO property 'elements')\n at [Source: (BufferedReader); line: 99, column: 23] (through reference chain: com.tencent.devops.common.api.pojo.Result["data"]->com.tencent.devops.process.pojo.pipeline.ModelDetail["model"]->com.tencent.devops.common.pipeline.Model["stages"]->java.util.ArrayList[1]->com.tencent.devops.common.pipeline.container.Stage["containers"]->java.util.ArrayList[0]->com.tencent.devops.common.pipeline.container.VMBuildContainer["elements"]->java.util.ArrayList[1]) reading GETEnvironment:
cat VERSION
in installed dir): allcat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: