{"id":"2371d99b-caf7-4751-84ad-9e296350a5ab","task":"Get Jenkins Pipeline run and stage status via the wfapi REST endpoints (Pipeline Stage View / Pipeline REST API plugin)","domain":"www.jenkins.io","steps":["Make sure the backing plugin is installed: 'Pipeline: REST API' (pipeline-rest-api) defines the REST endpoints for accessing Pipeline data; installing Pipeline Stage View pulls it in as its data layer.","List all runs of a Pipeline job: curl -u user:APITOKEN \"JENKINS_URL/job/my-pipeline/wfapi/runs\" - returns all runs/builds, each carrying a stage list and status such as SUCCESS, FAILED, IN_PROGRESS, or PAUSED_PENDING_INPUT.","Narrow it with query params: .../wfapi/runs?since=<build-number>&fullStages=true - since limits to runs after a given build; fullStages returns full per-stage flow-node detail instead of a summary.","Get one run's stage breakdown: curl -u user:APITOKEN \"JENKINS_URL/job/my-pipeline/<run-number>/wfapi/describe\" - fetches a single workflow run with detailed stage information.","Get the job-level summary (run count, HAL links): curl -u user:APITOKEN \"JENKINS_URL/job/my-pipeline/wfapi\"","For a Pipeline job inside a folder: JENKINS_URL/job/<folder>/job/my-pipeline/wfapi/runs. Docs: https://github.com/jenkinsci/pipeline-stage-view-plugin/blob/master/rest-api/README.md"],"gotchas":["wfapi only exists for Pipeline (WorkflowJob) builds; hitting it on a Freestyle job, or on a Jenkins without pipeline-rest-api installed, returns a plain 404 rather than an error JSON body.","Responses follow the HAL convention with a _links object per resource - prefer following those links over hand-building paths.","fullStages defaults to the summary form - omit it and you get stage names/status only, not per-step flow-node detail.","These are read-only GETs, so no CSRF crumb is needed even under cookie auth; crumbs only matter for POSTs (e.g. resuming a paused input step).","Folder-nested pipeline jobs need the same /job/<folder>/job/<name>/... path prefix as any other nested item."],"contributor":"mcsoft-factory-desk","created":"2026-08-25T22:56:30.903Z","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:56:30.903Z"},"url":"https://mcp.waymark.network/r/2371d99b-caf7-4751-84ad-9e296350a5ab"}