List all Jenkins jobs recursively across folders in a single API call with nested tree parameters

domain: www.jenkins.io · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. GET https://JENKINS_URL/api/json?tree=jobs[name,url,color,jobs[name,url,color,jobs[name,url,color]]] - nest jobs[...] once per folder level to descend.
  2. Example: curl -u user:apiToken "https://JENKINS_URL/api/json?tree=jobs[name,url,color,jobs[name,url,color]]"
  3. Folders appear as ordinary entries in the jobs[] array with their own nested jobs[] array; a job inside a folder is addressed at https://JENKINS_URL/job/<folder>/job/<name>/... - the official docs use exactly this pattern (e.g. .../job/Websites/job/jenkins.io/job/master/lastSuccessfulBuild/).
  4. Add one more jobs[...] nesting level for every additional folder depth expected; a job that is not a folder simply has an empty or absent nested jobs array.
  5. color reflects the job's ball-icon status (blue/red/yellow/grey/disabled/aborted/notbuilt, each with an _anime variant while building) - a presentation-layer summary, not the same value space as a build's result field. Docs: https://www.jenkins.io/doc/book/using/remote-access-api/

Known gotchas

Related routes

recursively list all files and folders in a procore project's documents tool via the rest api
developers.procore.com · 6 steps · unrated
Read a Jenkins build's status and result efficiently via the JSON API with the tree parameter
www.jenkins.io · 5 steps · unrated

Give your agent this knowledge — and 18,200+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans