Using TF.exe with Team Foundation Service?

We are building a build from Team Build (Team Foundation Service) to a local build machine using Jenkins CI to build. However, we still want to use Cloud for Source Control. So now we need to access cloud TFS to get the latest build. Jenkins has a TFS plugin, but this was done for TFS 2008.

Now I have a problem that I cannot access cloud TFS with TF.exe from VS2012. I found an article here that showed me the difference between TFS 2008 and 2010 (I need to add /tfs/DefaultCollection

to the server url), but that didn't work with cloud TFS.

Here's the error:

TF31002: Unable to connect to this Team Foundation server: https://myserver.visualstudio.com/tfs/DefaultCollection .

Team Foundation Server Url: https://myserver.visualstudio.com/tfs/DefaultCollection .

Possible reasons for failure: - Invalid name, port number or protocol for Team Foundation Server, - Team Foundation Server is disabled. - The password has expired or is incorrect.

Technical (for administrator): Remoteserver returned error: (404) Not found.

I tried it with /tfs/DefaultCollection

and without it. The same result.

The documentation, according to what I have found, is almost nothing.

Has anyone had any success accessing cloud TFS using TF.exe?

EDIT: Looking through other articles I've seen others have done this without /tfs

, so just add /DefaultCollection

(thanks to Microsoft for changing the url with each version ...) However, the output is still crap.

C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ Common7 \ IDE> tf workspaces -format: brief / server: https://myserver.visualstudio.com/DefaultCollection / login: MyUser, my password

Result:

No workspace mapping *; [OTHER USER NAME] on MYMACHINE found in Team Foundation Server https://myserver.visualstudio.com/DefaultCollection .

+3


source to share


1 answer


ok, found a solution ... Add "/ computer: *" if the workspace was not displayed on the machine running tf.exe before ...

Conclusion: The URL to connect to your collection in TFS has changed in every release.



TFS 2008: mytfs

TFS 2010: mytfs / tfs / DefaultCollection

TFS 2012: mytfs / DefaultCollection

OMG ..

+3


source







All Articles