Re: BUG with libraryResource : No such library resource null could be found.

2020-12-18 Thread Yannick Lacaute
No, all my functions are directly called from "steps", in a declarative pipeline On Fri, Dec 18, 2020 at 5:59 AM Stuart Rowe wrote: > Any chance this is being called from a @NonCPS method? I've seen similar > behaviour in that case. > On Monday, 14 December 2020 at 14:37:55 UTC-8 yannick...@gmai

Re: BUG with libraryResource : No such library resource null could be found.

2020-12-17 Thread Stuart Rowe
Any chance this is being called from a @NonCPS method? I've seen similar behaviour in that case. On Monday, 14 December 2020 at 14:37:55 UTC-8 yannick...@gmail.com wrote: > Hi, > > In a shared library, in a groovy script in /vars, the following code is > working perfectly: > > String call(String

BUG with libraryResource : No such library resource null could be found.

2020-12-14 Thread Yannick Lacaute
Hi, In a shared library, in a groovy script in /vars, the following code is working perfectly: String call(String stageName) { String cowMsg = libraryResource 'cow.txt' if (cowMsg != null) { def vars = [:] vars['MESSAGE'] = "BEGIN STAGE: ${stageName}" def engine = new StreamingTe