I've been looking into the workflow-cps-global-lib-plugin
<https://github.com/jenkinsci/workflow-cps-global-lib-plugin> repo but I
don't understand how libraryResource() method is declared lol. I'm a newbie
to groovy and OOP in general :(
On Tuesday, 25 April 2017 17:45:28 UTC-4, TInaTinaTian L wrote:
>
> 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 :)
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" 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-dev/a12e44ba-b0fc-4fdb-8df7-00af55fcf1f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.