It would be really nice to be able to specify agent rules on the pipeline level, not only on the step level.
I would like a “staging” pipeline that runs the exact same steps as the main pipeline, except it adds “queue=staging” to the agent selector rules of all steps.
I am currently faking it by having something like this in every step, and then setting BUILDKITE_QUEUE as a pipeline env variable.
agents:
- "size=medium"
- "queue=${BUILDKITE_QUEUE:-default}"