Skip to content

Commit

Permalink
fix(jenkins): unable to collect jobs nested in folder (#6046) (#6048)
Browse files Browse the repository at this point in the history
Co-authored-by: Klesh Wong <[email protected]>
  • Loading branch information
github-actions[bot] and klesh committed Sep 8, 2023
1 parent f5b52fa commit f5f9f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/plugins/jenkins/api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5f9f2b

Please sign in to comment.