Discover Jobs and Inspect the Latest Build
A 3-step recipe with Jenkins. We can help you get access.
Recipe · 3 steps
Discover Jobs and Inspect the Latest Build
with Jenkins · Continuous Integration Management
Enumerate an instance's jobs and report the status of one job's last build.
- List the jobs visible on the instance with their name, url, and status colour, so the caller can confirm the target job is present.
- Read the target job to capture the number of its most recent build along with the last successful and last failed build numbers for comparison.
- Fetch the detail of the job's most recent build, reporting whether it is still running, what it resulted in, and how long it took.
What you'll need to have ready
- jobName: The name of the job whose latest build should be inspected.
For your developer
Arazzo workflow jenkins:inspect-job-latest-build, 3 operations: getJenkinsInfo → getJob → getBuild. Specs on APIs.io.