Re: Invoking a declarative pipeline from shared libraries

2017-09-13 Thread Andrew Bayer
See https://issues.jenkins-ci.org/browse/JENKINS-46547 - this will probably make it into Declarative 1.3, landing hopefully end of October. On Wed, Sep 13, 2017 at 2:25 PM Sebastien Crete wrote: > Where you define your shared libraries ? > > with shared-lib in DP i think is ncessary define

Re: Invoking a declarative pipeline from shared libraries

2017-09-13 Thread Sebastien Crete
Where you define your shared libraries ? with shared-lib in DP i think is ncessary define in vars ... so your vars/myfile can call some lib https://stackoverflow.com/questions/44943438/jenkins-shared-library-instantiate-util-class-and-use-in-workflowscript i think ... -- You receive

Invoking a declarative pipeline from shared libraries

2017-05-15 Thread ctrlengineeringuk
Hi, I am trying to invoke my declarative pipeline from shared libraries (so my jenkinsfile is as brief as possible) but it doesn't seem to work properly and the "pipeline" block seems to get executed, but functions like "when" are not evaluated... Jenkinsfile: #!groovy def application = Const