Forum Discussion

Sen's avatar
Sen
Occasional Contributor
13 years ago

Unable to configure SCM

Hi,



Currently we have two Team foundation servers. I am trying to configure one TFS as a SCM to code collaborator using command line

(ccollab --tfs-server http://pc142714:8080/tfs/defaultcollection --tfs-collection pc142714\DefaultCollection --tfs-exe "c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe" --tfs-user <domain\user> --tfs-passwd <passwrd> set)

and add shelvesets using command line.

But i face the following error.



ccollab addchangelist 6242 CC_shelve_1

Connecting to CodeCollaborator Server
http://xxxx

Connected as: user

Loading review ID 6242.

Attaching changelists to review

SCM system is configured to Team Foundation Server.

ERROR: Could not configure SCM system:

Found multiple servers:
http://yyy:8080/tfs/iom-control and http://pc142714:8080/tfs/defaultcollection.  Set the tfs-server global option to the appropriate server and try again.



Whereas i have set the global options of the server (http://pc142714:8080/tfs/defaultcollection) as said in the first line

Kindly provide your inputs



Regards,

Sen
  • srikanth_cg's avatar
    srikanth_cg
    Occasional Contributor
    Try doing this first in your script and then the remaining



    ccollab set tfs-server http://pc142714:8080/tfs/defaultcollection



    The above command will set the tfs-server environment variable in cc.  All subsequent commands should use the above settings after executing the above command