Hi im trying to modify a plugin, that plugin generate a report i need to add the build number to the report name
thanks On Thursday, September 3, 2015 at 3:41:50 PM UTC+5:30, Victor Martinez wrote: > > 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/3ececc8d-e84b-4233-8ac6-104e1dc152f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
