CI/CD: Add a TFS Online Build Agent
- Create a new Agent Pool from VSO
[companyname].visualstudio.com -> Settings (Gear Icon) -> Agent Pools -> New Pool
(The pool name here will be used to be connected by the agent from the TFS Build server)
Generate the Personal Access Token from VSO
Click your name icon -> Security -> Personal Access tokens -> Add
(The token generated will be used as the communication token by the agent)
(refer to https://www.visualstudio.com/zh-TW/docs/setup-admin/team-services/use-personal-access-tokens-to-authenticate)
Remote to the TFS Build Server with mPort account
Download the Agent Installation Package according to the TFS Server OS
The download link can be found from [companyname].visualstudio.com -> Settings (Gear Icon) -> Agent Pools -> Download agent
Unzip the installation package to the target folder
- Run the command line with Administator
- In the command line, navigate to the target folder
- Run config.cmd with the following parameters
- URL: https://[companyname].visualstudio.com
- Personal Access Token: Use the Key from Step 2
- Pool Name: Use the created pool name in Step 1
- Agent Name: Can be any
- Account: mPort Account
- Run as service: Yes
- With above, the new Agent will be found under the new Agent Pool
- Update your CI/CD to use the new agent pool