remove ubuntu nodes on reset (#16703)

This commit is contained in:
Gary Verhaegen 2023-04-19 13:10:00 +02:00 committed by GitHub
parent 353c6d903d
commit c67ffe403e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,4 +247,10 @@ web-server() {
web-server &
# Start the VSTS agent
su --login --command "cd /home/vsts/agent && exec ./run.sh" - vsts
su --login vsts <<RUN
cd /home/vsts/agent
trap "./config.sh remove --auth PAT --unattended --token ${vsts_token}" EXIT
./run.sh
RUN