BuildKite文档建议您可以add environment variables that will apply to a whole pipeline.yml文件,但实际上并未向您显示如何操作。
我尝试过类似的事情:
CONCURRENCY=10
steps:
- label: ":rocket: Let's kick this pig"
concurrency: $CONCURRENCY
- label: ":explosion: All out of bubble-gum"
concurrency: $CONCURRENCY
但是我遇到了语法错误。
答案 0 :(得分:0)
您可以在env
块中指定它们,类似于为步骤指定环境变量。
env:
CONCURRENCY: 10
steps:
- label: ":rocket: Let's kick this pig"
concurrency: $CONCURRENCY
- label: ":explosion: All out of bubble-gum"
concurrency: $CONCURRENCY
从某种意义上说,yml一直如此。