Two builds runs successfully using triggers but the third build faild on trigger and give error "Authentication with TFS Server failed. Please check your settings."? any solution?
Asked
Active
Viewed 462 times
0
-
What authentication method do you use (PAT, Basic)? – Shamrai Aleksander Jul 13 '18 at 14:44
-
Yes is used Personal Access token – Abid Ali Jul 13 '18 at 17:42
-
@AbidAli Are you are TFS or VSTS? look like VSTS from your Image – Jayendran Jul 14 '18 at 07:05
-
Can you reproduce this issue every time? – starian chen-MSFT Jul 18 '18 at 11:41
2 Answers
0
As the message says just above the error you have to enable 'Allow Scripts to Access OAuth Token' in the build definition. It is possible to use a personal access token (PAT)to enable access to if you are triggering via PowerShell script or still you can rely on 'Allow Scripts to Access OAuth Token'

ChamindaC
- 1,452
- 10
- 10
0
This is an Authentication issue, the message explicitly pointed out the troubleshooting options:
- If you use the OAuth Token, make sure you enabled the access to it on the Build Definition (Which mentioned in @ChamindaC's answer above : enable "Allow Scripts to Access OAuth Token" in the build definition.).
- If you use a Personal Access Token, make sure it did not expire.
- If you use Basic Authorization, make sure alternate credentials are enabled on your TFS/VSTS
Based on your comments, seems you are using PAT, then just to check if the PAT is expired or not, or just try adding a new PAT, then try it again with the new PAT.

Andy Li-MSFT
- 28,712
- 2
- 33
- 55