Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How do you use with Team Foundation Server GIT?

Discussion in 'Unity Build Automation' started by Caliber-Mengsk, Mar 22, 2015.

  1. Caliber-Mengsk

    Caliber-Mengsk

    Joined:
    Mar 24, 2010
    Posts:
    689
    Hey guys, I set up git using team foundation server with unity (since I'm using visual studio, it's was fairly easy to set up) and I'm having an issue with getting the cloud build up and running. I've searched the web a bit, and even the forums here a little and didn't find anything so I figured I'd ask. I found the git clone link and pasted it into the cloud build, and now it's asking me to enter an ssh key into the repo. I've looked all through the team foundation pages and couldn't find a way, as well as the built in to visual studio parts of team foundation, and just didn't see anywhere to put the key. Any ideas? Is it just not possible with a private git on team foundation? Is there a Team Foundation Server user that is unity? If it's not supported, T_T that sucks, cause TFS inside of visual studio is very very easy to use as compared to any other git/svn system I've used before.
     
  2. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    I'm afraid this is not supported yet as we don’t support that right now, we plan to add user/pass support for git eventually in future!
     
  3. Caliber-Mengsk

    Caliber-Mengsk

    Joined:
    Mar 24, 2010
    Posts:
    689
    Darn. Oh well. I'm still a fair way off from needing this, but I wanted to mess around with it a little. Thanks. (if worse comes to worse, I can always set up a github or the like for it, but TFS allows unlimited file space, so in the case of games taking quite a bit of space these days, it's quite nice.)

    Thanks for letting me know. :D
     
    Dustin-Horne and David-Berger like this.
  4. matias_arje

    matias_arje

    Joined:
    Apr 1, 2015
    Posts:
    7
    I managed to connect Unity Cloud Build with Visual Studio Online git repository. This requires enabling alternate credentials in Visual Studio as described here: https://www.visualstudio.com/support/share-your-eclipse-projects-vs

    With the alternate credentials, you can configure Unity Cloud Build to use a repository url with username and password, like this:
    https://username:password@tenant.visualstudio.com/DefaultCollection/_git/projectname

    The ssh key can be ignored.

    Note that having the credentials stored as part of the url may have some security implications.
     
    knickerbocker and David-Berger like this.
  5. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    Brilliant, thanks for letting us know!
     
  6. Caliber-Mengsk

    Caliber-Mengsk

    Joined:
    Mar 24, 2010
    Posts:
    689
    Yep, that works, though, I was hoping to not have to enter ios credentials for test builds. Oh well, easier then having to power up my own mac system and such. Thanks matias_arje for the info. :D
     
  7. efonsecab

    efonsecab

    Joined:
    Mar 1, 2011
    Posts:
    31
    Thanks, I can confirm it works. Indeed having the credentials in the url may have security implications, but it is better than nothing, I can live with that.
     
  8. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    It may be worth setting up an additional account. I can't remember what the account limit is for free users. I know that as an MSDN customer I can have unlimited MSDN subscribers as users for VSO and I can have up to 5 non-msdn accounts. I think that 5 limit applies to free accounts as well. You should setup a less priveledged account to use for cloud build and make sure it only has enough privledges to read from the repository. That way worst case your code gets leaked but no one can hose your repository.
     
    knickerbocker likes this.
  9. Eknoes

    Eknoes

    Joined:
    Sep 15, 2015
    Posts:
    56
    An alternative to creating another account is creating a personal access token and use it instead of the password. It's possible to give them exactly the priviledges you want
     
  10. Loden_Heathen

    Loden_Heathen

    Joined:
    Sep 1, 2012
    Posts:
    456
    Any hint as to when or if TFS source control will be supported?

    I am aware a Team Project can be configured to to use GIT but we have several projects running under TFS source control and would prefer to stay with that model but the possibilities for cloud build are becoming worth the change if need be :)
     
    MaxGuernseyIII, cgrow67 and DurbsDev like this.
  11. zeb33

    zeb33

    Joined:
    Nov 17, 2014
    Posts:
    95