Skip to content

Instantly share code, notes, and snippets.

@subudear
Created March 27, 2019 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save subudear/f506d32856cb96e31dfc03d4121cf8a5 to your computer and use it in GitHub Desktop.
Save subudear/f506d32856cb96e31dfc03d4121cf8a5 to your computer and use it in GitHub Desktop.
export the parameters for ubuntu vsts build agent
#!/bin/bash
#Provide VSTS account name NOT the FULL URL
export VSTS_ACCOUNT=abc-example-dev
#Provide the PAT value
export VSTS_TOKEN=izpcivnfdfgdgd7gawylkjllw255yvgmoe4qtc4fxqg2mtprx4oyutretjxdpcgp5nvq
#The build agent will be ubuntu hostname appended with word agent
export VSTS_AGENT='$(hostname)-agent'
#Provide the POOL name for agent
export VSTS_POOL="Self-Hosted Linux Agent"
#provide the path where the agent will install and run, home for the agent
export VSTS_HOME=/home/admin
#Provide the work directoy
export VSTS_WORK=$VSTS_HOME/agent/_work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment