With the previous method of defining pipelines it was possible to define env vars that applied to every step in the downloaded pipeline, however the new syntax only allows step level env which is not automatically passed to each downloaded step.
In the previous thread it was suggested that this should work:
env: SOMETHING: "test" steps: - command: "buildkite-agent pipeline upload"
However this didn’t seem to work for me.
The only work around I’ve got at the moment is to process the variables in the downloaded pipeline like this:
- label: ':rocket: Deploy' command: deploy.sh plugins: docker#v2.0.0: image: google/cloud-sdk environment: - PROJECT=$PROJECT - CLUSTER=$CLUSTER