Re: Pipeline Groovy Madness

2016-10-14 Thread Brian Ray
Keep an eye on JENKINS-35390 . Though the other day I optimistically tried to use Groovy's AST transform @Immutable on a class ... should've known that would not p

Re: Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson
On Friday, October 14, 2016 at 1:47:24 PM UTC+1, Daniel Beck wrote: > > > > On 14.10.2016, at 13:25, Jonathan Hodgson > wrote: > > > > All I've done is move that one line, and for the record at the moment > it's being called without OSX being active, so nothing inside that first if > stateme

Re: Pipeline Groovy Madness

2016-10-14 Thread Daniel Beck
> On 14.10.2016, at 13:25, Jonathan Hodgson wrote: > > All I've done is move that one line, and for the record at the moment it's > being called without OSX being active, so nothing inside that first if > statement is being executed (though it shouldn't cause any problems even if > its was) >

Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson
Hi, I'm trying to get some Groovy code working in the pipeline. The code used to work fine, somewhere in the endless stream of updates of jenkins and plugins, it stopped. It used to look like this (I've stripped the bits that do actual work out for brevity) @NonCPS def isPlatformActive(platfo