huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
45 stars 22 forks source link

##[error]Authentication with TFS Server failed. Please check your settings. #53

Closed naveenparihar18 closed 6 years ago

naveenparihar18 commented 6 years ago

Hi Benj,

I am not able to trigger a build due to authentication issue. Could you please help.

URL to TFS Server (including Collection and Team Project) *: https://******testingservices.visualstudio.com/CucumberExtentReporter/_git/Payroll-Application

Name of the Build Definitions that shall be triggered *: CucumberExtentReporter Payroll Build

Authentication :: Method : Personal Access Token

The password, Personal Access Token or OAuth Token to authenticate: $(myh6****zi5vhhzrw37nir52yyima)

Error Message : 2018-02-25T22:28:32.7661780Z Using current Team Project Url 2018-02-25T22:28:32.7661981Z Path to Server: https://********testingservices.visualstudio.com/CucumberExtentReporter 2018-02-25T22:28:32.7662179Z Using Personal Access Token 2018-02-25T22:28:32.9192842Z Authentication failed - please make sure your settings are correct. 2018-02-25T22:28:32.9193921Z If you use the OAuth Token, make sure you enabled the access to it on the Build Definition. 2018-02-25T22:28:32.9194198Z If you use a Personal Access Token, make sure it did not expire. 2018-02-25T22:28:32.9194456Z If you use Basic Authentication, make sure alternate credentials are enabled on your TFS/VSTS. 2018-02-25T22:28:32.9262846Z ##[error]Authentication with TFS Server failed. Please check your settings.

huserben commented 6 years ago

Hi

from looking at the logs, it seems like that you PAT is wrapped in $(...). However either you would paste it directly in, or you use a variable and reference it via this syntax: $(variablename).

Edit: Was it ever possible to queue the build? Or did you just start using the Task?

huserben commented 6 years ago

Hi @BlackHeartz18

did you have any chance to check if in your configuration the PAT might be wrapped unnecessarily in the $(...)?

huserben commented 6 years ago

Hi @BlackHeartz18

can you provide me any info or tell me if you still face the problem?

huserben commented 6 years ago

Issue will be closed due to unresponsiveness of the creator