Re: Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
This is working for me now, I think the issue was that my groovy file under /var/ was not camel case so it wasn't finding it (locally it was camel case but my source control didn't pick up the rename because it used to be name MyTest.groovy). On Friday, August 25, 2017 at 11:14:30 AM UTC-4,

Re: Jenkins shared library for pipelines “No such property”

2017-08-25 Thread Mark Waite
Maybe you need a "return this" at the end of the groovy file (as in https://github.com/docker/jenkins-pipeline-scripts/blob/master/src/com/docker/utilities/AWSSync.groovy )? On Fri, Aug 25, 2017 at 9:08 AM red 888 wrote: > Im trying to wrap my head around shared

Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
Im trying to wrap my head around shared libraries (with descriptive not scripted pipelines) and I'm not sure how I should be doing this. Right now I have this in my jenkinsfile: def Storeinvar = powershell ( script: '$PSVersionTable.PSVersion.major', returnStdout: true) So I'm