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