Hi

thanks for the reply

im new to this. my plugin will start as a post build option in jenkis so 
which  methods should i use? 

can u tell me how can i get the number in string or int format?

thanks.

On Thursday, September 3, 2015 at 12:10:49 PM UTC+5:30, Victor Martinez 
wrote:
>
> 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/5a4849ab-0fc4-4157-98fb-0ce6db6b59bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to