Read a file in my JenkinsFile located on the master e.g. readTrusted('pod.yaml')?

It seems weird to me to purposely try to do a hacky work around for a problem where you know the proper solution.

would reading it from a shared library work? The bonus would be that the shared library would be version controlled. You could make a function that returned yaml read via libraryResource

1 Like