arangamani / jenkins_api_client

Ruby Client libraries for communicating with Jenkins Remote Access API
http://github.arangamani.net/jenkins_api_client/
MIT License
416 stars 239 forks source link

Get build by commit hash #303

Open brentgreeff opened 3 years ago

brentgreeff commented 3 years ago

I have independent command which triggers a build by pushing to github. Webhook then starts the build on Jenkins. Is it possible to use the commit hash from this push to query the Jenkins API & get details about the build. I just want the build status for a specific git commit hash.

I have looked through the code for JenkinsApi::Client::Job & JenkinsApi::Client::BuildQueue - but I dont see what I am looking for.

Happy to try & extend this project if you can give me some guidance on how it can be achieved.