-1

下面是来自 Azure 发布管道的 Azure 错误日志。

2020-07-24T05:17:13.7712974Z ##[section]Starting: Deploy Azure App Service
2020-07-24T05:17:14.0464143Z ==============================================================================
2020-07-24T05:17:14.0465719Z Task         : Azure App Service deploy
2020-07-24T05:17:14.0469391Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2020-07-24T05:17:14.0469849Z Version      : 3.163.5
2020-07-24T05:17:14.0470410Z Author       : Microsoft Corporation
2020-07-24T05:17:14.0470921Z Help         : https://aka.ms/azureappservicetroubleshooting
2020-07-24T05:17:14.0471274Z =============================================================================
2020-07-24T05:17:16.0650643Z Got connection details for Azure App Service:'XXXXX'
2020-07-24T05:17:17.6576087Z (node:764) Warning: Use Cipheriv for counter mode of aes-256-ctr
**2020-07-24T05:17:17.6627737Z ##[error]Error: No package found with specified pattern: D:\a\r1\a\Drop<br/>Check if the package mentioned in the task is published as an artifact in the build or a previous stage and downloaded in the current job.**
2020-07-24T05:17:22.9168975Z Successfully added release annotation to the Application Insight : XXXXX
2020-07-24T05:17:24.8686063Z Successfully updated deployment History at https://XXXXX.scm.azurewebsites.net/api/deployments/231595567842919
2020-07-24T05:17:24.8933576Z ##[section]Finishing: Deploy Azure App Service

PS 我已经检查了构建管道,我可以下载构建 Artificats,但它显示在警告下方。

[警告]目录 'D:\a\1\a' 为空。不会添加任何内容来构建工件“drop”。

4

2 回答 2

0

由于任务“发布构建工件”从 $(build.artifactstagingdirectory) 发布工件,所以我们需要添加一个任务“复制文件”以将文件**从 $(system.defaultworkingdirectory) 复制到 $(build.artifactstagingdirectory)**。它将我的构建复制到暂存目录。

于 2020-07-24T13:53:57.803 回答
0

假设您的意思是您已经解决了构建工件空问题,但发布管道仍然存在Azure App Service deploy任务问题。

如错误所述,“找不到指定模式的包:D:\a\r1\a\Drop”,您需要检查如何定义,尝试使用格式$(System.DefaultWorkingDirectory)/**/*.zip而不是$(System.DefaultWorkingDirectory)\Drop.

于 2020-07-27T08:22:16.960 回答