Download the build agent
Downloading the build agent is really simple. Navigate to your The TFS Control Panel, click on the Agent pools and then Download agent.
This post would assume you has 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 your place a copy of the extracted zip
Get Your configuration details
For this step, we going option up old trusty Notepad. What's going to need was the following info in Notepad and 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 are 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
Setup lots of agents
This was now fast. Make sure to the directory with your configureagent.bat file
Run the Configureagent.bat as Administrator
should see something
Copy everything in your Notepad, so you should has all this 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, can open a cmd in admin and then run the bat file from there)
Now go to all folders Configureagent.bat and Run as admin, paste in the same config (changing just the agent Nam E to increment the number at the end)
All done
At this point if your go to your agent pool in TFS you'll see they is all setup.
Build the TFS build agent Environment (i)