Skip to content

Commit f5f9f2b

Browse files
fix(jenkins): unable to collect jobs nested in folder (#6046) (#6048)
Co-authored-by: Klesh Wong <zhenmian.huang@merico.dev>
1 parent f5b52fa commit f5f9f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/plugins/jenkins/api/jobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func GetJobsPage(apiClient aha.ApiClientAbstract, path string, page int, pageSiz
3737
}
3838
// set query
3939
query := url.Values{}
40-
treeValue := fmt.Sprintf("jobs[name,class,url,color,base,jobs,upstreamProjects[name]]{%d,%d}", i, i+pageSize)
40+
treeValue := fmt.Sprintf("jobs[fullName,name,class,url,color,base,jobs,upstreamProjects[name]]{%d,%d}", i, i+pageSize)
4141
query.Set("tree", treeValue)
4242

4343
res, err := apiClient.Get(path+"/api/json", query, nil)

0 commit comments

Comments
 (0)