Skip to content

[zz-glob regression] No pattern option for buildkite-agent artifact upload #3535

@JoeColeman95

Description

@JoeColeman95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions