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.
But how do I create a FilePath object? available constructors need another Filepath / channel. How can I achieve this?
Thanks