jenkins.build should return the build number too
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.
I just ran into the same thing @msdark. The location is nice, but a build number would be very helpful!
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 ¯_(ツ)_/¯