Hello,
package com.mycompany;
import org.jenkinsci.plugins.workflow.libs.*;
this.metaClass.mixin(ResourceStep)
def read(fileName) {
return libraryResource(fileName)
}
return this
I have the above LibraryResource.groovy file that basically just delegates to the libraryResource() pipeline step from the Jenkins Pipeline steps. I can't find a way to compile it unfortunately.
I probably need to import the right class first and then mixin that class into the above LibraryResource class I wrote???
Any help is welcome :)