搭建TFS 2015 Build Agent环境(一)
2016-12-28 17:28
357 查看
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.![](https://binary-stuff.com/posts/files/e5490974-b508-4625-b86b-7b81d1c081d2.png)
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
![](https://binary-stuff.com/posts/files/4a9752ea-1540-4925-bf49-40d5834d335b.png)
Setup agent file structure
Copy this to your build server and then extract the zip to look like below for example, create these folders.![](https://binary-stuff.com/posts/files/461ce39b-ce6a-478a-a6c7-2d9c31b59d04.png)
then inside each of those folders you place a copy of the extracted zip
![](https://binary-stuff.com/posts/files/5274a029-76aa-4004-ac52-3a027254c159.png)
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 lineAgent 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
![](https://binary-stuff.com/posts/files/8e83f164-fcc8-4c9c-9677-bacbefba0a30.png)
Setup lots of agents
This part is now fast![](https://binary-stuff.com/posts/files/4a9752ea-1540-4925-bf49-40d5834d335b.png)
. Make sure you in the directory with your ConfigureAgent.bat file
![](https://binary-stuff.com/posts/files/e93040fd-fe7d-4f16-8ec4-5b5e74f094f7.png)
Run the ConfigureAgent.bat as administrator
![](https://binary-stuff.com/posts/files/0a3c8cf5-c8e1-4e3f-b917-85e0c160a4b8.png)
You should see something like this now
![](https://binary-stuff.com/posts/files/d6411d39-2aea-4b46-a086-16760c957bba.png)
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
![](https://binary-stuff.com/posts/files/c66a8959-1a58-4789-81b0-837285c8a49f.png)
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)
![](https://binary-stuff.com/posts/files/3ddc8fba-c042-4549-b44d-2147db1c8561.png)
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.![](https://binary-stuff.com/posts/files/fac74a7c-4039-470a-886f-69e1cf99ae57.png)
相关文章推荐
- 5.Builder-建造者模式
- 事件分发的源码解析
- jquey ajax跨域访问
- TPC-H 前15个query在mysql上的查询树
- String,StringBuffer与StringBuilder的区别?
- ant的build.xml文件解析(转载方便学习)
- Java开发的利器: 反编译工具 JD-GUI
- Vue + Webpack + Vue-loader 功能介绍
- StringBuffer与StringBuilder之间的区别
- SCCM2012 R2系统部署时,客户端报0x80004005错误(2)
- EasyUI折叠表格层次显示detailview详解及实例
- iOS每日一记之———————————————自定义UIswitch 控件
- 设计模式--[4]建造者模式和AlertDialog源码解析
- domain unique 遇到的问题 即:@UniqueConstraint 和@indexes 用法
- vue访问原生 DOM 事件
- [LeetCode]451. Sort Characters By Frequency
- Starting MySQL. ERROR! The server quit without updating PID file
- pt-query-digest用法
- HBuilder从下载到使用
- 生成EasyUI Tree所需的Json数据格式