Azure DevOps Pipeline : Download publish artifact (webapp. zip) 到特定服务器或 PC 的本地目录

标签 azure azure-devops azure-devops-pipelines

我在 Azure DevOps 中创建了一个管道,并希望将发布工件下载到服务器,每次运行管道时,我都可以在 Azure 上的 Drop 文件夹中看到已发布的 zip 文件,但我没有任何方式下载本地目录中的 zip(具体来说,我想将 webapp.zip 文件下载到特定服务器上的文件夹中)。

请建议我需要添加哪个任务以及在哪里可以添加用于下载 zip 文件的服务器详细信息。

最佳答案

Please suggest which task I need to add and where I can add the server details for downloading the zip file.

根据您的要求,您可以使用Download Build Artifacts taskDownload Pipeline Artifacts task .

取决于您用来发布工件的任务:

发布构建工件任务 -> 下载构建工件任务

发布管道工件任务 -> 下载管道工件任务

您可以在任务中定义本地计算机上的路径(目标目录),然后 zip 文件将下载到本地计算机。

enter image description here

注意:由于您需要将文件下载到本地计算机或服务器,因此需要在Self-Hosted agent上运行管道.

关于Azure DevOps Pipeline : Download publish artifact (webapp. zip) 到特定服务器或 PC 的本地目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66116116/

相关文章:

c# - Windows Azure 上每分钟或每秒视频的成本

python - 我们如何使用Python/Pandas将数据推送到Azure SQL Server?

c# - 当我使用 System.Data.SqlClient 版本 4.4.3 时,无法加载文件或程序集 System.Data.SqlClient,版本 = 4.2.0.2

azure - Azure Devops 管道的传入 Webhook 触发器 : "Cannot find webhook for the given webHookId"

c# - 远程桌面 "can' t 连接到远程计算机”

azure - 如何在Azure Pipelines的步骤中使用变量作为条件?

Git 卡在增量对象上

azure-devops - Azure DevOps Artifacts - 保留策略澄清

azure - Azure DevOps 管道可以按特定顺序运行吗?

spring-boot - 如何在运行 Azure DevOps Pipeline 时跳过构建测试(Spring Boot Maven 项目)