sh, as other Jenkins steps, started in current workspace directory.
So, you could replace native java/groovy
new File with Jenkins
readFile and the rest of your code should work.
Or specify the full path for
CLICK HERE to find out more related problems solutions.