[英]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.