node-jenkins-api icon indicating copy to clipboard operation
node-jenkins-api copied to clipboard

jenkins.build should return the build number too

Open matiasfha opened this issue 9 years ago • 2 comments

Currently jenkins.build returns this kind of message.

{ message: 'job is executed',
location: 'http://jenkins.com/queue/item/3435/' }

Would be useful if the build number is returned too as a separate property in the response. This can be used to get the build info and to create the url of the build to allow users use that information. In some versions of jenkins or configurations the queue url is not available or accessible.

matiasfha avatar May 06 '16 03:05 matiasfha

I just ran into the same thing @msdark. The location is nice, but a build number would be very helpful!

dougflip avatar May 14 '16 17:05 dougflip

It looks like this is a problem with Jenkins and not node-jenkins-api. Here's a link to the relevant Jenkins bug report. Unfortunately that bug is marked Won't fix. If it's any consolation, at least it looks like they have some good reasons for not fixing it ¯_(ツ)_/¯

cbeach avatar Sep 20 '16 20:09 cbeach