azure-devops - Azure DevOps 构建工件存储在哪里
问题描述
我正在尝试为 WCF 项目创建 CI 管道。我让 CI 成功运行,但无法确定在哪里寻找工件。我的意图是让 CI 管道在 Azure 中发布这个工件,然后让 CD 管道在配置文件上运行转换。最终,我们希望获取该输出并将其存储在 blob 存储中(这可能是另一篇文章,因为 WCF 站点是针对 API 的)。
我也意识到我真的不想压缩工件,因为无论如何我都需要对其进行转换。
以下是我的问题:
- 工件“drop”发布到的容器在哪里?
- 我如何将站点发布到容器而不使其成为单个文件。
谢谢
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
trigger:
- release/2021-June-CI
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**./*.sln'
feedsToUse: 'select'
vstsFeed: '******************************' # private nuget package masked
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
# todo - unit tests do not exist yet
#- task: VSTest@2
# inputs:
# platform: '$(buildPlatform)'
# configuration: '$(buildConfiguration)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
解决方案
你会在这里找到你的工件:
你有一个文件,因为你在 VSBuild/p:PackageAsSingleFile=true
您也可以考虑使用更新的任务Publish Pipeline Artifact
。如果没有,请在此处DownloadBuildArtifacts
检查任务
推荐阅读
- react-native - 我们可以将现有的 React Native 应用程序转换为 Flutter,而无需在 Flutter 中从头开始编写代码吗
- opengl - 在 Opengl 中修改 VBO 的最佳方法是什么?喜欢推流行吗?
- javascript - 禁用新日期时间的前 7 周并禁用日期选择器的周末
- mysql - Mysql JDBC getTimestamp 返回错误值
- python - 在 GCP 中使用 tensorflow_cloud 训练模型时如何引用自定义 Python 文件?
- python - 是否可以将 Tkinter 中的图像移到最后面?
- qt - QT 样式表中的混合背景颜色
- mysql - 为什么更新 onetomany 字段会使 typeorm 中的所有其他先前归档为空
- linux - 无法在 Parrot OS 上执行 apt 更新
- vb.net - VB.Net Await 抛出 NullReferenceException