How to load files from resources folder in Shared library without knowing their names (or number)?
问题 As you know, in Shared libraries in Jenkins, it is possible to load a resource (located in resources folder) by doing: libraryResource("script.sh") Now my use case is that I want to load number of files inside a folder under resources : + resources + teamA + script1.sh + script2.sh And I want to load all those files before doing anything : I did a method in the shared library: new File(scriptsFolder).eachFile() { file-> writeFile([file:"${env.workspace}/${file.getName()}",text:libraryResource