TFS代理池 - 每个服务器中有一个代理(2个服务器) - 部署工件 [英] TFS Agent Pool - one agent in in each servers (2 servers) - deploying artifacts

查看:214
本文介绍了TFS代理池 - 每个服务器中有一个代理(2个服务器) - 部署工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们正在使用TFS 2015 Update 2并使用部署队列创建了一个发布定义(具有两个代理的代理池 - 每个服务器都有一个代理,即agent_Server1, agent_Server2)。部署构建时,文件只部署到一台服务器,而不是部署过程中的
。因此,我们正在重新创建另一个版本定义,同时禁用它先前安装的服务器。是否有任何配置可用于解决此问题,



谢谢


KM

解决方案

您好MDNK,



感谢您在此发帖。



您使用哪个任务将文件部署到目标服务器?我认为您不需要再创建一个版本定义。您只需添加另一个Publish Build Artifact即可将文件发布到另一台服务器的share文件夹中:


https://www.visualstudio.com/en-us/docs/build/steps/utility/publish-build-artifacts


或者您可以使用Run Powershell Script  On Target Machine任务将文件部署到另一台服务器。如果我误解了你的意思,请随时告诉我。



最好的问候


Limitxiao高


Hello,

We are using TFS 2015 Update 2 and created a release definition with deployment queue (having Agents pool with two agents - each server has one agent i.e. agent_Server1, agent_Server2). When we deploy the build, files are deployed to only one server instead of both in deployment process. So, we are recreating one more release definition with disabling the server it previously installed. Is there any configuration available to address this issue,

Thanks

KM

解决方案

Hi MDNK,

Thank you for posting here.

Which task did you use to deploy the file to target server? I think you do not need to create one more release definition. You just need to add another Publish Build Artifact to publish the file to the share folder in another server:

https://www.visualstudio.com/en-us/docs/build/steps/utility/publish-build-artifacts

Or you could use the Run Powershell Script On Target Machine task to deploy the files to another server. If I misunderstand your meaning, please feel free to let me know.

Best Regards

Limitxiao Gao


这篇关于TFS代理池 - 每个服务器中有一个代理(2个服务器) - 部署工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆