码迷,mamicode.com
首页 > Web开发 > 详细

搭建TFS 2015 Build Agent环境(一)

时间:2016-12-28 20:17:57      阅读:454      评论:0      收藏:0      [点我收藏+]

标签:following   eal   tps   ane   alt   direct   ati   which   his   

Download the build agent

Downloading the build agent is really simple. Navigate to your TFS control panel, click on Agent pools and then Download agent.

技术分享

This post will assume you have setup your agent pool already but that’s as simple as click New pool and giving it a name on the screen above 技术分享

Setup agent file structure

Copy this to your build server and then extract the zip to look like below for example, create these folders.

技术分享

then inside each of those folders you place a copy of the extracted zip

技术分享

Get your configuration details

For this step we going option up old trusty notepad. What you are going to need is the following info in notepad, put each of these on a new line

  • Agent Name
  • Url to TFS
  • Agent Pool
  • Working directory (a blank line to use the default which is where your agent is with _working)
  • Configure as a windows service (this post assumes a y)
  • Service run as username
  • Service run as password
  • another empty line

this should look something like this

技术分享

Setup lots of agents

This part is now fast 技术分享. Make sure you in the directory with your ConfigureAgent.bat file

技术分享

Run the ConfigureAgent.bat as administrator

技术分享

You should see something like this now

技术分享

Copy everything in your notepad, so you should have all that config with the extra new line at the end. Now right click in cmd and paste

技术分享

and that would all work (if you want it to stay open you can open a cmd in admin and then run the bat file from there)

技术分享

Now go to each folders ConfigureAgent.bat and run as admin, paste in the same config (changing just the agent name to increment the number at the end)

All Done

At this point if you go to your agent pool in TFS you will see they are all setup.

技术分享

搭建TFS 2015 Build Agent环境(一)

标签:following   eal   tps   ane   alt   direct   ati   which   his   

原文地址:http://www.cnblogs.com/vveiliang/p/6230307.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!