Im using the src folder and writing groovy classes. These are wrappers
around java api. Its nice because I can use package name-spacing, but whats
not nice is in order to use them in a declarative pipeline I have to do
this in my steps:
script { mySexyAssClass.aMethod('sdsdfsdf','sdfsdfds') }
I want to use these like pipeline steps. Now I _can_ do that with global
functions I put in vars, but unlike src I don't think vars can have
subfolders so that folder done get real sloppy. Is there a way to have
subfolders under vars?
I was thinking about having a separate shared repo just for reusable custom
"steps". It would have classes in src _and_ corresponding functions in vars
that use the classes. I my pipelines I could call the vars like a regular
steps. Is this a common way of organizing this?
--
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/d6f6532a-c379-4de6-9cd1-0cd6da0b75bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.