I am trying to retrieve specific jenkins details about last successful build, such as revision SHA1. I use:
https://jenkins-host/job/job-name/lastSuccessfulBuild/api/json?tree=actions[build[revision[SHA1]]]
However, this gives additional data associated with the actions field, is it possible to narrow it down to just the revision SHA1.
I know I can get buildNumber using https://jenkis-host/job/job-name/lastSuccessfulBuild/buildNumber.
Please advise.