【发布时间】:2020-07-16 17:23:14
【问题描述】:
我有一个 Azure DevOps 管道,我想标记 Azure Git 存储库
task: AssembyInfoReader@2
displayName: Set Version numbers
inputs:
searchPattern: 'JLReyLibrary/Properties/GlobalAssemblyInfo.cs'
获取程序集信息变量。
那么这个任务会报错:
task: GitTag@2
displayName: Tag Repo to $(AssemblyInfo.AssemblyInformationVersion)
inputs:
tag: '$(AssemblyInfo.AssemblyInformationalVersion)'
forceTagCreation: true
##[error]OAuth token not found. Make sure to have 'Allow Scripts to Access OAuth Token' enabled in the build definition.
如何设置 OAuth 令牌?
澄清
我尝试了下面的建议。
现在我有以下问题。
- 如何获取 OAuth 令牌?
- 如何在
env: Systems_AccessToken: $(System.AccessToken)中获得它
我找到了`DevOps->组织设置->OAuth 配置
- 在哪里可以找到设置中的字段说明?
我仍然收到以下错误消息:
Allow Scripts to Access OAuth Token
【问题讨论】:
标签: azure-devops