【发布时间】:2020-01-22 15:32:55
【问题描述】:
我似乎错过了什么。使用经典编辑器创建构建管道时,我可以在右上角看到一个工件选项卡:
在那里我可以浏览编译器创建的内容,帮助找出发布管道的文件夹结构。
现在,当我使用 YAML 模板(也是 NET 框架)创建构建管道时,没有 Artifacts 之类的东西:
根据日志,已经写入了一些文件。是否有某种文件浏览器,或者我必须猜测these variables 中的哪个与日志文件中的哪个文件夹匹配?
这是 YAML:
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Release.zip'
replaceExistingArchive: true
我使用的 YAML 主要是从 Github 存储库构建时生成的标准 YAML。如果我能看到神器,这会影响吗?我应该先以某种方式将 Github 内容复制到 Azure,然后再构建它吗?
【问题讨论】:
-
你能分享你的 YAML 吗?
标签: azure azure-devops