Created
April 7, 2020 11:00
-
-
Save shibayan/95006c112de7540294db7f521f328bb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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