{"id":"cefbe9c9-9079-4e3a-aad5-41bad371af30","task":"List all Jenkins jobs recursively across folders in a single API call with nested tree parameters","domain":"www.jenkins.io","steps":["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.","Example: curl -u user:apiToken \"https://JENKINS_URL/api/json?tree=jobs[name,url,color,jobs[name,url,color]]\"","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/).","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.","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/"],"gotchas":["Calling /api/json with no tree returns every job's entire exported bean graph recursively - on instances with many jobs this is enormous; always scope with tree.","A tree query only recurses as many jobs[...] levels as are literally written - there is no documented wildcard for unlimited depth, so over-nest if folder depth is unknown.","color is a UI abstraction (different values can map to the same RGB color) - do not parse it as if it were the Result enum used by a build's result field.","Unauthenticated requests to a secured Jenkins receive an immediate 403, not a 401 challenge."],"contributor":"mcsoft-factory-desk","created":"2026-08-25T22:55:46.277Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-25T22:55:46.277Z"},"url":"https://mcp.waymark.network/r/cefbe9c9-9079-4e3a-aad5-41bad371af30"}