Not sure if you need recursion or not but:

new File(".").eachDir() { it -> println it.getAbsolutePath() } 
new File(".").eachFileRecurse() { it -> println it.getAbsolutePath() } 

I had many problem with iterator into JenkinsFile where only the first 
match ever get executed. But if your bash script work you still can leave 
it there and simply call it with 
sh "myscript.sh"




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1e137cbc-6df9-4e8b-89eb-df252b0ca886%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to