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!
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/4ff3980e-89f3-461e-aafa-94b38b53e42c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.