fix:multibranch sonarqube missing
Signed-off-by: shaowenchen <mail@chenshaowen.com>
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user