- Use https account URL (https://contoso.visualstudio.com)
- Should use default of PAT Authentication for VSTS. Details
- Copy and Paste your PAT into the terminal.
>> Connect:
Enter server URL > https://contoso.visualstudio.com
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Connecting to server ...
Saving credentials...
>> Register Agent:
Enter agent pool (press enter for default) >
Enter agent name (press enter for mymachine) > myAgentName
Scanning for tool capabilities.
Connecting to the server.
Successfully added the agent
Enter work folder (press enter for _work) >
2016-05-27 11:03:33Z: Settings Saved.
Enter run agent as service? (Y/N) (press enter for N) >
If you did not run as a service, you can start it interactively by running
$ ./run.sh
Scanning for tool capabilities.
Connecting to the server.
2016-05-27 11:07:41Z: Listening for Jobs
If you are asked whether to replace an agent, read details here