You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/09/08 09:17:56 UTC

[incubator-devlake] branch kw-6034-jenkins-fullname created (now aab591ff4)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a change to branch kw-6034-jenkins-fullname
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at aab591ff4 fix(jenkins): unable to collect jobs nested in folder

This branch includes the following new commits:

     new aab591ff4 fix(jenkins): unable to collect jobs nested in folder

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-devlake] 01/01: fix(jenkins): unable to collect jobs nested in folder

Posted by kl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch kw-6034-jenkins-fullname
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit aab591ff48f1add3be95750e27fc992a440ec99e
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Fri Sep 8 17:17:02 2023 +0800

    fix(jenkins): unable to collect jobs nested in folder
---
 backend/plugins/jenkins/api/jobs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/plugins/jenkins/api/jobs.go b/backend/plugins/jenkins/api/jobs.go
index cccec06b2..07ded1152 100644
--- a/backend/plugins/jenkins/api/jobs.go
+++ b/backend/plugins/jenkins/api/jobs.go
@@ -37,7 +37,7 @@ func GetJobsPage(apiClient aha.ApiClientAbstract, path string, page int, pageSiz
 	}
 	// set query
 	query := url.Values{}
-	treeValue := fmt.Sprintf("jobs[name,class,url,color,base,jobs,upstreamProjects[name]]{%d,%d}", i, i+pageSize)
+	treeValue := fmt.Sprintf("jobs[fullName,name,class,url,color,base,jobs,upstreamProjects[name]]{%d,%d}", i, i+pageSize)
 	query.Set("tree", treeValue)
 
 	res, err := apiClient.Get(path+"/api/json", query, nil)