Get the last successful build of a job
One step with CloudBees. We can help you get access.
Look something up
Get the last successful build of a job
with CloudBees · Continuous Integration Management
Works with AI assistants
Use CloudBees: its CloudBees CI REST API (Jenkins-compatible) Job API lets you get the last successful build of a job in a single step (GET /job/{name}/lastSuccessfulBuild/api/json). CloudBees also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- When did my job last pass, and which build was it?
- Which build of this job was the most recent green one?
Say it to your AI assistant
- Show the last successful build of job {name}.
- Get {name}'s most recent passing build, limited to {tree}.
For your developer
GET /job/{name}/lastSuccessfulBuild/api/json in CloudBees CI REST API (Jenkins-compatible) Job API. Full spec on APIs.io.