![](/img/trans.png)
[英]Correct way to use Publish Pileine Artifact , Download Pipeline Artifact and Deploy to Azure webapp
[英]Azure DevOps Pipeline: Download publish artifact (webapp.zip) to specific server or local directory of PC
I have created a pipeline in Azure DevOps and wanted to download the publish artifact to a server, each time I am running the pipeline I can see the Published zip file in Drop folder on Azure but I am not getting any way to download the zip on本地目錄(特別是我想在特定服務器上的文件夾中下載 webapp.zip 文件)。
請建議我需要添加哪個任務以及我可以在哪里添加服務器詳細信息以下載 zip 文件。
請建議我需要添加哪個任務以及我可以在哪里添加服務器詳細信息以下載 zip 文件。
根據您的要求,您可以使用Download Build Artifacts 任務或Download Pipeline Artifacts 任務。
取決於你使用什么任務來發布工件:
發布構建工件任務 -> 下載構建工件任務
發布管道工件任務 -> 下載管道工件任務
您可以在任務中定義本地計算機上的路徑(目標目錄),然后 zip 文件將下載到本地計算機。
注意:由於您需要將文件下載到本地機器或服務器,您需要在Self-Hosted agent上運行管道。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.