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但是我得到了一个语法错误。
发布于 2019-03-07 06:52:08
您可以在env块中指定它们,类似于为步骤指定环境变量。
env:
CONCURRENCY: 10
steps:
- label: ":rocket: Let's kick this pig"
concurrency: $CONCURRENCY
- label: ":explosion: All out of bubble-gum"
concurrency: $CONCURRENCY这是有意义的,一路向下。
https://stackoverflow.com/questions/55033476
复制相似问题