Alright, 

Are you developing a new jenkins plugin? Or you mean configuring a jenkins 
job? If so, please refs the below page:

- 
https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables

And also use jenkinsci-users mailing list or IRC for such topics since this 
mailing list is for Jenkins core and plugins development discussions

Cheers



On Thursday, 3 September 2015 10:27:42 UTC+2, Thilina Madhusanka wrote:
>
> 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/a9f54df3-f82a-4720-b28a-df753649d2cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to