Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shibayan
Created April 7, 2020 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shibayan/95006c112de7540294db7f521f328bb6 to your computer and use it in GitHub Desktop.
Save shibayan/95006c112de7540294db7f521f328bb6 to your computer and use it in GitHub Desktop.
if [ -d ~/agent ]; then
exit 0
fi
mkdir ~/agent
cd ~/agent
curl -Lso vsts-agent-linux-x64.tar.gz https://vstsagentpackage.azureedge.net/agent/2.165.2/vsts-agent-linux-x64-2.165.2.tar.gz
tar zxvf vsts-agent-linux-x64.tar.gz
rm vsts-agent-linux-x64.tar.gz
./config.sh --unattended --url $1 --auth pat --token $2 --pool $3 --agent $4 --replace
sudo ./svc.sh install
sudo ./svc.sh start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment