fix:multibranch sonarqube missing

Signed-off-by: shaowenchen <mail@chenshaowen.com>
This commit is contained in:
shaowenchen
2020-08-21 15:09:08 +08:00
parent b5d9d29fc6
commit 2bdf23ae98
2 changed files with 3 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
approvers:
- runzexia
- soulseen
- shaowenchen
reviewers:
- runzexia
- soulseen
- shaowenchen
labels:
- area/devops

View File

@@ -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())
}