cli icon indicating copy to clipboard operation
cli copied to clipboard

"local run" does not interpolate environment variables in pipeline.yml

Open moensch opened this issue 6 years ago • 1 comments

Version: d57d7d87d471c114eaf0f6ab91743568abad56c7

I have this in my pipeline.yml file:

steps:
 - label: foo
   command: 'echo hi'
   plugins:
    - docker-compose#${COMPOSE_VERSION}:
        run: app

And I run this:

$ export COMPOSE_VERSION=v2.6.0

$ bk local run
2019/02/06 10:19:41 Error getting git commit: exit status 128
2019/02/06 10:19:41 Error getting git branch: exit status 128
>>> Starting local agent 🤖
>>> Starting build 👟
>>> Executing initial command: buildkite-agent pipeline upload
>>> Executing command step foo

~~~ Setting up plugins
$ cd /Users/ssuter/workspace/bktest
🚨 Error: Failed to checkout plugin docker-compose: Incomplete plugin path "docker-compose"

>>> 🚨 Command failed in 3.069498517s
🚨 Job failed with code 1

moensch avatar Feb 06 '19 17:02 moensch

There's a workaround in issue 40

baylisscg avatar Jul 25 '19 00:07 baylisscg

We've not included local run in v3 for now, so I'm going to close this. Given there is a workaround mentioned I'll mark it as done. Feel free to re-open if need be, as we plan on having a local run or something similar in the future, just not now

mcncl avatar Sep 19 '24 06:09 mcncl