【发布时间】:2021-02-22 21:22:55
【问题描述】:
【问题讨论】:
标签: azure-devops azure-pipelines devops
【问题讨论】:
标签: azure-devops azure-pipelines devops
看起来您在使用经典编辑器时无法在此输入中使用变量,但如果您使用 YAML 管道,则可以使用变量:
variables:
buildName: TestBuild
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: 'xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx'
pipeline: '$(buildName)'
buildVersionToDownload: 'latest'
downloadType: 'single'
downloadPath: '$(System.ArtifactsDirectory)'
artifactName: test
如果您仍想使用经典编辑器,您可以通过将构建导出到 json 来“破解”系统:
打开 json 并用变量替换其中的值,然后导入构建:
结果:
【讨论】: