Hi,

 It depends on what you need to do. Check the below javadoc:

 - From a particular Jenkins job you can query its latest build: 
http://javadoc.jenkins-ci.org/hudson/model/AbstractProject.html#getLastBuild()
 
 - From a particular Job build you can query its current build number: 
http://javadoc.jenkins-ci.org/hudson/model/Run.html#number

Cheers


On Thursday, 3 September 2015 08:30:20 UTC+2, Thilina Madhusanka wrote:
>
> hi
>
> Is there a method to retrieve current  build number for a plugin to use. ?
>
> thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b05cb39f-e86b-4c4f-a83f-8c861306e644%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to