Build the TFS build agent Environment (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.