I'm looking to ultimately read and parse an xml file in order to populate a Variable using the 'prompt as selection box' option.
currently just to test this I have the following script code in the 'Choices' field -
${groovy:
import java.io.File;
def str = new File(configuration.getWorkspaceDir().getAbsolutePath() + "/Source_path/datasources.txt").text}
return str
/}
However this simple test fails with -
java.io.FileNotFoundException: /home/build/work/Source_path/datasources.txt (Permission denied)
Any ideas what I'm doing wrong?