惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
PCI Perspectives
PCI Perspectives
H
Help Net Security
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
S
Secure Thoughts
Jina AI
Jina AI
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Security @ Cisco Blogs
阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
T
Tor Project blog
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
博客园 - 【当耐特】
G
Google Developers Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
I
Intezer
S
Schneier on Security
S
Securelist
W
WeLiveSecurity
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
Scott Helme
Scott Helme
Project Zero
Project Zero
Google Online Security Blog
Google Online Security Blog
T
Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
V
Visual Studio Blog
Last Week in AI
Last Week in AI
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
A
Arctic Wolf
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog

博客园 - 共同学习,共同进步

SQL Pretty Printer for SSMS 很不错的SQL格式化插件 GOOD LINK C# 代码片段 用简单代码破解Excel保护密码 罗克韦尔自动化(中国)责任有限公司 - 招聘软件开发实习生 思考1 NET Framework Library Source Code Now Available SQL IsEmptyOrNull [笔记] C# 3.0 新特性[3]-Understanding Object Initializers [笔记] C# 3.0 新特性[2]-Understanding Extension Methods [笔记] C# 3.0 新特性[1]-implicitly typed local variables 通用数据库存储过程代码--高效分页存储过程 listview and downloader Team Foundation Blog Overview of Team Foundation Build Understanding CGI with C# IEnumerator 是所有非泛型枚举数的基接口 C# Programming Guide An Introduction to C# Generics
TFS 2008 - Running two Build Agents on the Same Machine
共同学习,共同进步 · 2007-11-01 · via 博客园 - 共同学习,共同进步

There have been at least a couple of forum posts from users that would like to run more than one build agent on the same physical machine. The normal reason is that they have more than one TFS server and want to use the machine as a build agent for both.

In this post I will describe how to add another build agent to a machine that already has one installed. The steps are very manual but should be simple enough.

  1. First you need to copy the actual binary for the service and it's config file. The config file is keyed off the name of the binary, and we have to have a separate config file for each.
    • cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies"
    • copy TfsBuildService.exe TfsBuildService-2.exe
    • copy TfsBuildService.exe.config TFSBuildService-2.exe.config
  2. Next you need to edit the new config file to point to the other server and use a different port number.
    • notepad TFSBuildService-2.exe.config
    • Search for port and change the port number from 9191 to something new like 8181
    • There's also another port number for interactive running that defaults to 9192, you should change that one as well. Let's say to 8182.
    • Now, search for AllowedTeamServer and set the value to the full URL of the new server.
    • Save your changes.
  3. Now, you can install the new service using sc.exe and get it started.Take note of the spaces after the equals signs in the sc command line.
    • sc \\jpricket-test create "MyVSTFBuild" binPath= "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\TfsBuildService-2.exe" DisplayName= "My Team Build Service"
    • Now, open up Control Panel\Administrative Tools\Services.
    • Find "My Team Build Service". Right click on it and open Properties.
    • On the Log On tab, set it to the service account and password that you want to use.
    • Hit OK to save your changes and then start the service. 
  4. Finally, you have to create a build agent on the other server that points to this new machine and port.
    • Open Visual Studio
    • Connect the other TFS server and the correct Team Project
    • Right click on the Builds node in team explorer and select Manage Build Agents.
    • Make sure to create one with the correct port number and machine name.
    • You will also want to change the "Working Directory" to something different that the other instance of the build service uses. I used "$(Temp)\my\$(BuildDefinitionPath)"
  5.  Now, you're ready to build on both agents using the same machine.

UPDATE: I neglected to mention that you should reserve the new port number that you decide to use in step 2. You can read up on how to do this with the wcfHttpConfig tool here. Basically you just need to run a command prompt, change to the privateassemblies area of the Visual Studio program directory (usually C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies) and type the following at the command line:  wcfhttpconfig.exe reserve DOMAIN\TeamBuildAccount 8181
reference :http://blogs.msdn.com/jpricket/archive/2007/08/03/tfs-2008-running-two-build-agents-on-the-same-machine.aspx