subfolders under vars for shared repo- or however this is support to be organized?
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:
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?