Jenkins lastbuild api json. Jan 9, 2019 · I have a hosted Jenkins server and from there, ...
Jenkins lastbuild api json. Jan 9, 2019 · I have a hosted Jenkins server and from there, I am trying to fetch the build details (like result, timestamp, duration etc. The first Jul 18, 2018 · How do I check the Jenkins build status without switching to the browser? If required, I can create a script using the JSON API, but I was wondering if there is already something like this built in. In this tutorial, we’ll cover how to get the last successful build information using the Jenkins APIs. With curl + jq for quick CLI checks or Python for scripted automation, you can reliably integrate Jenkins build statuses into your workflows. , status, duration, commit history) for all Jenkins jobs (including nested jobs in folders) using the Jenkins REST API. Nov 28, 2025 · In this guide, we’ll walk through a step-by-step Java implementation to fetch build details (e. curl is a command line utility that we can use to send data through common protocols such as HTTP, and it comes by default with most Linux distributions. Subtract 1 from that, and that's your previous build (unless plugins mess with build number sequentiality). Key endpoints for our goal: May 15, 2015 · Also found under "number": if using /lastBuild/api/json. I know I can call localhost/job/RSpec/lastBuild/api/json to get the status of the lastest Jenkins build. djnepsw hun bkbhzuc dvqrg tydhf csieo qgr scbicl jacr hoeug