-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
It appears that readFileFromWorkspace() treats an input relative path as relative to the workspace root. It would be useful if it could also search for the file relative to the calling script. Specifically, the relative path lookup makes it more difficult to test DSL scripts locally using the User Power Moves command-line method, as the script root there is not necessarily the same as the workspace root in the live build.
In 1.45 the _FILE_ variable was added, see
JENKINS-25935. As a workaround you can that variable to do something like this: