Thanks for the reply.
Is there any way to do this via a pipeline.yml directly?
Sounds like the answer is no?
Essentially, what I want is the opposite of “artifact_paths” in a buildstep.
Oh, right … hmm , unfortunately, that particular functionality is not available; you can only automatically upload artifacts (artifact_paths) but to download them you have to use the command in your build scripts buildkite-agent artifact download
You do make a good suggestion though. I’m going to pass this info to our Product team.
When you consider that artifacts can be managed via a plugin, and that plugins are processed in order, you should be able to get your artifact to the second step, like this:
- label: "step2"
// want to download stats.csv here before running the plugin
plugins:
- artifacts#v1.3.0:
download: stats.csv
- ssh://.../cqs-importer-buildkite-plugin.git#v0.9.5:
csv_file: "stats.csv"
agents:
queue: java