简体   繁体   English

在 azure devops 中选择发布管道中的任务

[英]selection of task in release pipeline in azure devops

I have a build pipeline which I created and I have the artifacts in a drop folder.我有一个我创建的构建管道,我在放置文件夹中有工件。 Now I want to deploy these artifacts.现在我想部署这些工件。 The drop folder contains my data factory resources like pipelines, datasets. drop 文件夹包含我的数据工厂资源,如管道、数据集。

I have 2 questions:我有两个问题:

  1. What task for the agent should I select in the release pipeline to deploy this folder?我应该在发布管道中为代理选择什么任务来部署此文件夹?

  2. How do I specify that in this environment it should go ?我如何指定在这种环境中它应该去? ie If I suppose have a QA environment, then how do I specify that thing?即如果我假设有一个 QA 环境,那么我如何指定那个东西?

I am actually confused over this selection of task for the agent.我实际上对代理的这个任务选择感到困惑。

What task for the agent should I select in the release pipeline to deploy this folder?我应该在发布管道中为代理选择什么任务来部署此文件夹?

It's based on where and how you want to deploy the artifacts.它基于您想要部署工件的位置和方式。 If you just want to deploy them in a local machine where you can access, then you just need to add a Copy Files task to copy the artifacts to the target folder.如果您只想将它​​们部署在您可以访问的本地机器上,那么您只需要添加一个复制文件任务来将工件复制到目标文件夹。

If you want to deploy to other remote sites or third party services, then you need to select other tasks based on your requirements, and some of them we need to create services connections to access them.如果你想部署到其他远程站点或第三方服务,那么你需要根据你的需求选择其他任务,其中一些我们需要创建服务连接来访问它们。 For example Deploy to Azure (eg Deploy a web app to Azure App Services )例如部署到 Azure (例如将 Web 应用部署到 Azure 应用服务

How do I specify that in this environment it should go ?我如何指定在这种环境中它应该去? ie If I suppose have a QA environment, then how do I specify that thing?即如果我假设有一个 QA 环境,那么我如何指定那个东西?

In release pipeline we can defined multiple environments/stages, in each environment we can add different tasks to do the actions based on our requirements.在发布管道中,我们可以定义多个环境/阶段,在每个环境中,我们可以根据我们的要求添加不同的任务来执行操作。 We need to add the artifacts sources to deploy them in the release pipeline.我们需要添加工件源以在发布管道中部署它们。 Please see Release pipelines for details.有关详细信息,请参阅发布管道 You can reference below links to do that:您可以参考以下链接来做到这一点:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM