未验证 提交 d6ab60bd 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #2910 from shaowenchen/fix_multibranch_sonarqube

fix:multibranch sonarqube missing
approvers: approvers:
- runzexia - runzexia
- soulseen - soulseen
- shaowenchen
reviewers: reviewers:
- runzexia - runzexia
- soulseen - soulseen
- shaowenchen
labels: labels:
- area/devops - area/devops
...@@ -405,7 +405,7 @@ func (j *Jenkins) GetProjectPipelineBuildByType(projectId, pipelineId string, st ...@@ -405,7 +405,7 @@ func (j *Jenkins) GetProjectPipelineBuildByType(projectId, pipelineId string, st
return build.Raw, nil return build.Raw, nil
} }
func (j *Jenkins) GetMultiBranchPipelineBuildByType(projectId, pipelineId, branch string, status string) (*devops.Build, error) { func (j *Jenkins) GetMultiBranchPipelineBuildByType(projectId, pipelineId, branch string, status string) (*devops.Build, error) {
job, err := j.GetJob(pipelineId, projectId, branch) job, err := j.GetJob(branch, projectId, pipelineId)
if err != nil { if err != nil {
return nil, restful.NewError(devops.GetDevOpsStatusCode(err), err.Error()) return nil, restful.NewError(devops.GetDevOpsStatusCode(err), err.Error())
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册