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

Merge pull request #2910 from shaowenchen/fix_multibranch_sonarqube

fix:multibranch sonarqube missing
approvers:
- runzexia
- soulseen
- shaowenchen
reviewers:
- runzexia
- soulseen
- shaowenchen
labels:
- area/devops
......@@ -405,7 +405,7 @@ func (j *Jenkins) GetProjectPipelineBuildByType(projectId, pipelineId string, st
return build.Raw, nil
}
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 {
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.
先完成此消息的编辑!
想要评论请 注册