【发布时间】:2019-06-11 15:13:49
【问题描述】:
谁能解释我如何让它工作?
我有一个使用作业模板和步骤模板的管道。
我可以设置变量
variables:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
或
variables:
system_accesstoken: $(System.AccessToken)
在起始管道和步骤模板中,但它不起作用。
(according to this question)
我不断得到:
[错误]“允许脚本访问 OAuth 令牌”必须启用。
如果我通过可视化设计器设置并查看yaml或导出管道,我找不到任何设置'Allow OAuth...'的参考。
This 对于基于 yaml 的管道也没有帮助...
这是需要令牌的任务:
- task: bool.fetch-build-artifact.fetch-build-artifact-task.fetch-build-artifact@3
displayName: 'Fetch'
inputs:
project: '[omitted]'
buildDefinitionId: 159
artifactName: drop.develop
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
【问题讨论】:
标签: continuous-integration azure-devops yaml azure-pipelines