Mix up the pipeline list between ks and Jenkins

Technically we should take the Pipeline list from ks or mixup the instead of only taking it from Jenkins. Because we always manipulate Pipeline from ks.

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-11-26 15:18:49 +08:00
parent a314b31bf0
commit 3d12019e23
4 changed files with 83 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ func (h *devopsHandler) ListPipeline(request *restful.Request, response *restful
devops := request.PathParameter("devops")
limit, offset := params.ParsePaging(request)
objs, err := h.devops.ListPipelineObj(devops, limit, offset)
objs, err := h.devops.ListPipelineObj(devops, nil, limit, offset)
if err != nil {
klog.Error(err)
if errors.IsNotFound(err) {