How to read subfolders in jenkins pipeline
问题 I'm trying to write a pipeline jenkins job that loop through the subfolder of a specific directory and launch something. The problem is to access the filesystem. For some reason it does not seems to read the file system at all, neither its own workspace. This is the snippet I'm using node ('label') { workspacePath = '/opt/installersWS' ws(workspacePath){ stage ("test"){ ...some stuff... runtimeBuildDir = new File(workspacePath + "/components") echo runtimeBuildDir.getPath() if