Re: Trigger from pipeline model definition plugin

2016-11-22 Thread Tim Downey
Thanks Andrew. On Mon, Nov 21, 2016 at 2:24 PM, Andrew Bayer wrote: > So the symbol on SCMTrigger was originally "scm", which turned out not to > work in Pipeline due to overlapping with the auto-generated "scm" global > variable. I changed the symbol to "pollScm" as of core Jenkins 2.22, but >

Re: Trigger from pipeline model definition plugin

2016-11-21 Thread Andrew Bayer
So the symbol on SCMTrigger was originally "scm", which turned out not to work in Pipeline due to overlapping with the auto-generated "scm" global variable. I changed the symbol to "pollScm" as of core Jenkins 2.22, but that means it won't work in Declarative on earlier core versions. In scripted P

Re: Trigger from pipeline model definition plugin

2016-11-17 Thread Tim Downey
Hi Daniel. Thanks for the suggestion. I tried pollSCM and pollScm. Both are unsupported. The 'cron' trigger is in the list. Highlighted below. java.lang.NoSuchMethodError: No such DSL method 'pollScm' found among steps [VersionNumber, archive, bat, build, catchError, checkout, deleteDir, di

Re: Trigger from pipeline model definition plugin

2016-11-17 Thread Daniel Beck
> On 17.11.2016, at 15:17, Tim Downey wrote: > > I went ahead and tried poll as a trigger, but as you can see, that is not > supported. Supported methods within a triggers closure appear to be: > Should be 'pollSCM' (or 'pollScm'?). Note that the 'cron' trigger which you know works is also

Trigger from pipeline model definition plugin

2016-11-17 Thread Tim Downey
Hi all, I'm using the pipeline model definition plugin (which is great btw!) to specify my pipelines. I have a question about trigger though. I'd like to use a poll based trigger instead of cron, but it's not clear on if it is supported. Can anyone provide any feedback? Here's the example f