Open matt2xu opened 3 years ago
I've seen that there are several endpoints to get a particular build: lastBuild, lastStableBuild, lastSuccessfulBuild, lastFailedBuild, lastUnstableBuild, lastUnsuccessfulBuild, lastCompletedBuild.
I think it could be interesting to add them all with a loop to avoid too much copy/paste, what do you think?
Hi,
I'm using this package at work at Teads, and I noticed that there is no functions to get the last build and last successful build, whereas the endpoints are available on Jenkins API.
I'm willing to contribute a PR adding two functions
lastBuild
andlastSuccessfulBuild
to thebuild.js
module, is that ok with you @silas ?Thanks, Matthieu