When invoked from Jenkinsfile, pipeline steps work fine and all. But when I want to compile a library with pipeline steps, compilation fails.package com.company;
def read(fileName) {
return libraryResource(fileName)
}
return this
How to compile the above code as regular .groovy code?
Which packages do I have to import???
Which classes do I have to mixin???
Which class does the "libraryResource()" method come from???
Thanks!