You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor token loading and cleanup functions in docker script.
Fixes issue with this error during cleanup
WRITE ERROR: VS30063: You are not authorized to access https://dev.azure.com.
Also fixed issue with hard code AZP_TOKEN_FILE location being a hard coded path /azp/.token which may not exists. Changed it to use the same location as the script location.
# Ensure we have a new token if using service principal credentials, as the old one might have expired between the time it was waiting to run a job and now.
367
+
if [ -n"$AZP_CLIENTID" ];then
368
+
load_azp_token
369
+
fi
370
+
355
371
# If the agent has some running jobs, the configuration removal process will fail.
0 commit comments