I had a bash script that push some directories to AWS S3
for dir in */ ; do
"push.sh" "${dir::-1}"
done
assuming the current directory is X, the script will push ./a/ and ./b/
into s3://.../a/X and s3://.../b/X
Now i'm trying to switch to Jenkinsfile. To traverse child directories
(like what the for loop basically did), the only method I found is using
FilePath.listDirectories
<http://javadoc.jenkins-ci.org/hudson/FilePath.html#listDirectories-->.
But how do I create a FilePath object? available constructors need another
Filepath / channel. How can I achieve this?
Thanks
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1707010c-3fd6-494e-bad3-0175b99f55f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.