-
Notifications
You must be signed in to change notification settings - Fork 330
Description
Is your feature request related to a problem? Please describe.
Following this PR, which was later included in 3.104.0, there looks to be some regression with glob pattern matching when using buildkite-agent artifact upload with special characters within filenames, more specifically in this case with ~.
This has been specifically raised as an issue here: https://forum.buildkite.community/t/no-pattern-option-for-buildkite-agent-artifact-upload/4527
Describe the solution you'd like
It would be nice if there was a --no-pattern or --literal option to make filenames be interpreted literally.
Describe alternatives you've considered
Original command in pipeline:
(cd debian/build/ && find -type f -exec buildkite-agent artifact upload {} \;)
New command in pipeline:
(cd debian/build/ && find -type f -print0 | sed -Ee 's/([]?*{}~[])/\\\1/g' | xargs -0 -L 1 -- buildkite-agent artifact upload)
Additional context