【问题标题】:VSTS: Using $(BuildID) as an argument in a build stepVSTS:在构建步骤中使用 $(BuildID) 作为参数
【发布时间】:2016-10-22 20:41:13
【问题描述】:

我想将构建 ID 作为参数提供给构建中的某些脚本:

但这不会解析为构建的 ID。相反,它按字面意思使用。查看输出:

dotnet publish -c Release -o C:\agent\_work\50\a\MyProject.Api --version-suffix $(BuildID)

这是为什么?

【问题讨论】:

    标签: tfs azure-devops azure-pipelines-build-task azure-pipelines


    【解决方案1】:

    使用这种格式:$(Build.BuildId)

    【讨论】:

      猜你喜欢
      • 2016-11-13
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多