我正在尝试使用传递给自定义管道的变量设置步骤的部署变量。这个想法不是必须复制自定义管道,因为唯一的变化是从 bitbucket 设置中读取的部署变量。
定义如下,但抛出错误
pipelines:
custom:
my-pipeline:
- variables:
- name: deployment
- step:
deployment: $deployment
script:
- ...
我在这里遗漏了什么,还是部署密钥不允许接受变量?