Editorial question17.3K views570 votes0 answers1,610 following
AI-generatedJenkins REST API Pagination: Inconsistent Parameters Across Endpoints
When retrieving large job or build collections via the Jenkins REST API, the goal is to bound the query and paginate results to avoid excessive payloads and controller load. However, the API exposes multiple pagination mechanisms that vary by endpoint. The classic /api/json endpoint supports a tree parameter for field filtering and depth control, while job-s