简体   繁体   English

Azure DevOps 将发布管道链接到部署组

[英]Azure DevOps link release pipeline to deployment group

I am working with a self-hosted agent to release code into a target on-prem server.我正在使用自托管代理将代码发布到目标本地服务器中。 In my case, I just want to copy a file from the artifacts directory (.exe file) into a folder on my machine.就我而言,我只想将工件目录中的文件(.exe 文件)复制到我机器上的文件夹中。 So I created a deployment group and installed the on-prem agent on this server.所以我创建了一个部署组并在这台服务器上安装了本地代理。 I created the release pipeline...but since I am just copying a file, I couldn't use one of the predefined templates.我创建了发布管道……但由于我只是在复制一个文件,因此我无法使用其中一个预定义模板。 So I started with Empty Job.所以我从空作业开始。 Then I added a step to copy the file using the "Copy Files" step.然后我添加了一个使用“复制文件”步骤复制文件的步骤。 However, no where in this process is there a place to associate a deployment group.但是,在此过程中没有任何地方可以关联部署组。 Some of the pre-defined templates have the option to specify the deployment group.一些预定义模板可以选择指定部署组。 But in an empty job with an added step, how do I specify the deployment group?但是在一个添加了步骤的空作业中,我如何指定部署组? Any ideas?有任何想法吗?

I was able to add a Deployment Group Job in the Tasks section of the pipeline.我能够在管道的任务部分添加部署组作业。 Originally I was using the default Task which was running on a Microsoft agent.最初我使用的是在 Microsoft 代理上运行的默认任务。 So was able to delete that one and add a Deployment Group job.所以能够删除那个并添加一个部署组作业。

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

相关问题 Azure DevOps 发布管道 - 如何自动注册部署组目标 - Azure DevOps Release Pipeline - How to Automate Registration of Deployment Group targets Azure DevOps 发布管道上的 ClickOnce 部署 - ClickOnce deployment on Azure DevOps release pipeline Azure DevOps发布管道优先级部署 - Azure DevOps Release Pipeline Priority Deployment Azure DevOps发布管道的动态变量组 - Dynamic variable group for Azure DevOps release pipeline Azure DevOps 管道即代码和部署组 - Azure DevOps Pipeline as Code and Deployment Group 在 Azure DevOps 发布管道中,如何将具有不同目标文件夹的部署组部署到多个 VM - In an Azure DevOps release pipeline how do you deploy to multiple VMs a deployment group with different target folders 如何使用部署组的 Azure 管道代理知道在 DevOps 发布期间跳过了哪些机器 - How to know which machines were skipped during DevOps Release using Azure Pipeline Agents for a Deployment Group Azure DevOps - 使用部署组或部署作业向环境发布管道? - Azure DevOps - Release Pipeline using Deployment Groups or Deployment Job to an Environment? Azure DevOps 发布管道 - Azure Devops Release Pipeline Azure DevOps Release Pipeline Managed Identity App Service 部署错误 - Azure DevOps Release Pipeline Managed Identity App Service Error On Deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM