Support bulk upload of pipelines

:wave: Howdy!

I think the title about sums it up. It’d be nice with buildkite-agent upload pipeline allowed globs similar to `buildkite-agent artifact upload.

Cheers!

Good suggestion ! As buildkite-agent upload pipeline doesn’t currently support globs, a potential workaround could be to use a combination of shell commands and scripting to achieve a similar result.

Here is the conceptual example:

#!/bin/bash
pipelines_directory="path/to/pipelines"
file_pattern="*.yml"

# Use a shell command to list the pipeline files with a specific pattern
pipeline_files=($pipelines_directory/$file_pattern)

# Loop through the identified files and upload them individually
for file in "${pipeline_files[@]}"; do
echo "Uploading pipeline: $file"
# Simulate buildkite-agent upload pipeline
# buildkite-agent upload pipeline "$file"
done