authorization - Connecting TeamCity to TFS -


this question has answer here:

i'm struggling trying connect teamcity project tfs project. tried bunch of stuff, same error:

tfs failed. exitcode: 111, command: c:\teamcity\webapps\root\web-inf\plugins\tfs\bin\tfs-native.exe @@c:\teamcity\temp\tc-tfs-25-7939_109\command.params, in file: {https://budiedimas.visualstudio.com/defaultcollection/testeteamcity, /hash:s, /noproxy, c:\teamcity\temp\tc-tfs-25-7939_108.result, connectiontest, $/testeteamcity/testeteamcity}, completed in: 1 second(s) stdout: tfs native verifier v8.0 copyright (c) 2006-2013 jetbrains s.r.o. running under .net framework 4.0.30319.18052 info  -  info  - use team explorer 2012 info  -  tfs native accessor v8.0 copyright (c) 2006-2013 jetbrains s.r.o. info  - connecting server https://budiedimas.visualstudio.com/defaultcollection/testeteamcity info  - webproxy disabled connection test:   server='https://budiedimas.visualstudio.com/defaultcollection/testeteamcity'   root='$/testeteamcity/testeteamcity' error - tf30063: not authorized access https://budiedimas.visualstudio.com/defaultcollection/testeteamcity. system.exception: tf30063: not authorized access https://budiedimas.visualstudio.com/defaultcollection/testeteamcity. ---> microsoft.teamfoundation.teamfoundationserverunauthorizedexception: tf30063: not authorized access https://budiedimas.visualstudio.com/defaultcollection/testeteamcity.    em microsoft.teamfoundation.client.channels.tfshttpwebrequest.ensuretokenprovider(httpwebresponse webresponse)    em microsoft.teamfoundation.client.channels.tfshttpwebrequest.sendrequest()    em microsoft.teamfoundation.client.channels.tfshttprequestchannel.request(tfsmessage message, timespan timeout)    em microsoft.teamfoundation.client.channels.tfshttpclientbase.invoke(tfsclientoperation operation, object[] parameters, timespan timeout, object[]& outputs)    em microsoft.teamfoundation.framework.client.registration.getregistrationentries(string toolid)    em microsoft.teamfoundation.framework.client.registrationproxy.getregistrationentries(string toolid)    em microsoft.teamfoundation.framework.client.registrationservice.getinstanceid()    em microsoft.teamfoundation.framework.client.registrationservice.get_instanceclientcachedirectory()    em microsoft.teamfoundation.framework.client.registrationservice..ctor(tfsteamprojectcollection tfsobject)    em microsoft.teamfoundation.client.tfsteamprojectcollection.createserviceproxy(type servicetype)    em microsoft.teamfoundation.client.tfsteamprojectcollection.getserviceinstance(type servicetype, object serviceinstance)    em microsoft.teamfoundation.client.tfsconnection.getservice(type servicetype)    em microsoft.teamfoundation.framework.client.preframeworkserverdataprovider.findservicelocation(string servicetype, string toolid)    em microsoft.teamfoundation.framework.client.preframeworkserverdataprovider.locationforcurrentconnection(string servicetype, guid serviceidentifier)    em microsoft.teamfoundation.client.tfsconnection.ensureproviderconnected()    em jetbrains.teamcity.tfs.command.do() na c:\buildagent\work\23f504c63c17dfdf\tfsnativeaccessor\src\command.cs:linha 28    em jetbrains.teamcity.tfs.program.main(string[] args) na c:\buildagent\work\23f504c63c17dfdf\tfsnativeaccessor\src\program.cs:linha 134    --- fim rastreamento de pilha de exce‡äes internas ---    em jetbrains.teamcity.tfs.program.main(string[] args) na c:\buildagent\work\23f504c63c17dfdf\tfsnativeaccessor\src\program.cs:linha 438 

i error:

'you not authorized access /defaultcollection/'

i have admin rights in on tfs , don't know if i'm missing authorizantion configuration on teamcity.

does have idea why happening?

i managed working in latest version of teamcity (which me 8.0.3) apparently has been working since version 7.1.4.

  1. first configure alternate credentials in tfs (profile -> credentials -> enable alternate credentials)

  2. then in teamcity

    • use following url format: https://{yournamehere}.visualstudio.com/defaultcollection
    • for username use alternate credential name setup in step 1. put in following format "##live##\usernamehere" (it tells below box, somehow missed first time!)

hope helps else, wasted quite bit of time on this!


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -