VSTS-Authentication with TFS Server failed. Please check your settings. TFS agent error

╄→гoц情女王★ 提交于 2020-01-25 09:09:52

问题


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?


回答1:


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'




回答2:


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.



来源:https://stackoverflow.com/questions/51327599/vsts-authentication-with-tfs-server-failed-please-check-your-settings-tfs-agen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!