【发布时间】:2019-08-25 00:37:01
【问题描述】:
我创建了一个可以正常工作并在最后发布工件的构建管道。
我还创建了一个发布管道来将 REST API 部署到 Azure Web 应用
发布管道任务有这样的信息:
$(System.DefaultWorkingDirectory)/**/*.zip
但是我得到了这个错误:
Error: More than one package matched with specified pattern: D:\a\r1\a\**\*.zip. Please restrain the search pattern.
当我看到放置文件夹时,我确实可以看到按日期排列的文件夹,并且有几个 .zip 文件
webapi 位于放置根目录中,但也在显示的文件夹中。
我无法找到如何每次都清理整个放置文件夹,或者如何避免此错误。
更新 1:
在构建管道中,我可以在发布时看到:
##[section]Starting: Publish Artifact: webapidrops
==============================================================================
Task : Publish Build Artifacts
Description : Publish build artifacts to Azure Pipelines/TFS or a file share
Version : 1.142.2
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
==============================================================================
##[section]Async Command Start: Upload Artifact
Uploading 31 files
Uploading 'webapidrops/2019_04/04_06_58/LuloWebApi.zip' (16%)
Uploading 'webapidrops/LuloWebApi.zip' (16%)
Uploading 'webapidrops/LuloWebApi.zip' (33%)
Uploading 'webapidrops/LuloWebApi.zip' (50%)
Uploading 'webapidrops/LuloWebApi.zip' (66%)
Uploading 'webapidrops/LuloWebApi.zip' (83%)
Uploading 'webapidrops/LuloWebApi.zip' (100%)
File upload succeed.
Upload 'D:\a\1\a' to file container: '#/1483345/webapidrops'
Associated artifact 387 with build 125
##[section]Async Command End: Upload Artifact
##[section]Finishing: Publish Artifact: webapidrops
【问题讨论】:
标签: msbuild azure-devops azure-pipelines