buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

New Feature required - interpolated values in environment definition. #248

Closed ozbillwang closed 7 years ago

ozbillwang commented 7 years ago

Could we have the variables defined as below?

env:
  ENVIRONMENT: dev1
  TAG_VERSION: ${ENVIRONMENT}-${BUILDKITE_BUILD_NUMBER}
toolmantim commented 7 years ago

Hi! I don't think this is going to be possible @SydOps, because you'd need to evaluate ENVIRONMENT before being able to use it below. You'd either need to define them outside of the pipeline.yml, or repeat them.

You can use interpolation though, in Buildkite Agent 3.0. But it uses the values from the environment which ran the buildkite-agent pipeline upload command.