After posting the question I looked at the JavDoc. And then deleted my post.
On Tuesday, 12 August 2014 10:52:51 UTC-7, Karthik V S wrote: > > Thank you Jesse. > > On Monday, 11 August 2014 18:37:50 UTC-7, Jesse Glick wrote: >> >> On Mon, Aug 11, 2014 at 7:57 PM, Karthik V S <karthik...@gmail.com> >> wrote: >> > I checked the project.getLogRotator() method. But the method is >> currently >> > deprecated. So is the setter method. Is there any other way to get it? >> That >> > is currently not deprecated. >> >> Did you not look at the Javadoc? >> >> http://javadoc.jenkins-ci.org/hudson/model/Job.html#getLogRotator() >> >> > Use getBuildDiscarder(). >> > -- 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 jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.