Re: NullPointerExceptions after adding TimerTrigger via groovy script.

2016-08-30 Thread Baptiste Mathus
Hello, There's a bunch of examples there: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console (see the end of the page). Cheers 2016-08-29 15:12 GMT+02:00 kumar naresh : > > HI Colin, > > this groovy is updating/adding build perodic section in build

Re: NullPointerExceptions after adding TimerTrigger via groovy script.

2016-08-29 Thread kumar naresh
HI Colin, this groovy is updating/adding build perodic section in build triggers section. can you please share the script to update poll scm section in build triger section via groovy script. Regards, Raju. On Wednesday, October 29, 2014 at 2:27:47 PM UTC+5:30, Colin McIntyre wrote: > >

Re: NullPointerExceptions after adding TimerTrigger via groovy script.

2014-10-29 Thread Colin McIntyre
Old post, I know, but I just came across this issue so thought I'd add my findings. https://issues.jenkins-ci.org/browse/JENKINS-14771 looks to be the same issue, the reason for the NPE is that while you've added the trigger to the job you haven't told the trigger about the job. To work