Thanks for releasing the 1.15 version with the includePathPattern option to s3Upload()!
Unfortunately, it doesn't work for me - no files are uploaded to S3.
See the following pipeline:
mkdir -p test test2
echo foo > test/bar.txt
echo foo > test2/baz.txt
s3Upload(bucket: bucket, path: 'test-pattern/', includePathPattern: '*/*.txt')
s3Upload(bucket: bucket, path: 'test-filename/test/bar.txt', file: 'test/bar.txt')
Only the test-filename folder is created in the bucket, no test-pattern folder. The output is as follows:
Started by user anonymous
Running on ESC (sir-4cs867nq) in /home/ubuntu/workspace/Test
[Test] Running shell script
+ mkdir -p test test2
+ echo foo
+ echo foo
Uploading */*.txt to s3://$bucket/test-pattern/
Uploading file:/home/ubuntu/workspace/Test/test/bar.txt to s3://$bucket/test-filename/test/bar.txt
Finished: Uploading to $bucket/test-filename/test/bar.txt
[Pipeline] // node
[Pipeline] End of Pipeline
I hope that I'm not to stupid for pattern matching (the same happens with includePathPattern:'**/*').