Search Unity

Unity Cloud Build with Visual Studio Online

Discussion in 'Unity Build Automation' started by efonsecab, Mar 7, 2015.

  1. efonsecab

    efonsecab

    Joined:
    Mar 1, 2011
    Posts:
    31
    I have all of my projects in Visual Studio Online(VSO), using GIT.
    I have been trying to access them from Cloud Build, the server can be reached, the SSH key is generated, but I have no idea what to do with it, in VSO I see no place where I can indicate it I'm going to add an ssh key.

    What I should do?
     
  2. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    I am curious, can you make the project public with VSO, if so could you test to setup a project as public project? Please look here for more information.
     
    Last edited: Mar 9, 2015
  3. deanosaur

    deanosaur

    Joined:
    Oct 13, 2013
    Posts:
    2
    I am in exactly the same boat as you. From what i have found there is no way to add ssh keys into VSOnline and there are several feature requests asking for it. sis you make any progress with the public project?
     
  4. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    527
  5. matias_arje

    matias_arje

    Joined:
    Apr 1, 2015
    Posts:
    7
    Yeah, at the moment VSO does not support certificate authentication and UCB does not have fields for basic http authentication credentials.

    Luckily URLs can contain the credentials and both services seem to be ok with that, so you can connect to VSO that way, but at best I consider it a temporary workaround.

    Please see this for more detailed steps:
    http://forum.unity3d.com/threads/how-do-you-use-with-team-foundation-server-git.312917/#post-2048733

    And here is the corresponding feature request for Visual Studio Online:
    https://visualstudio.uservoice.com/...upport-for-ssh-keys-as-alternate-authenticati
     
  6. fehaare

    fehaare

    Joined:
    Nov 23, 2016
    Posts:
    1
    It seems that VSO has added SSH support now, but I cannot get it to work after importing the SSH key into VSO. Has anyone experienced this?
     
  7. lpaulsen

    lpaulsen

    Joined:
    Oct 17, 2016
    Posts:
    1
    This is correct, Visual Studio Team Services (formerly known as VSO) now supports SSH key authentication. The process for associating your UCB public key with your VSTS user is rather simple: https://www.visualstudio.com/en-us/docs/git/use-ssh-keys-to-authenticate#configuration

    It's working fine for me.
     
  8. mattbur

    mattbur

    Joined:
    Apr 14, 2015
    Posts:
    1
  9. Shaun-Peoples

    Shaun-Peoples

    Joined:
    Feb 26, 2013
    Posts:
    24
    Not sure about the https URL, but with SSH you do need to specify the port as part of the path:

    ssh://whatever@whatever.visualstudio.com:22/_git/repo_name

    Likely the same for HTTPS.
     
  10. zeb33

    zeb33

    Joined:
    Nov 17, 2014
    Posts:
    95
    you can create access token, then url is :
    https://myaccesstoken@myagentname.visualstudio.com/_git/myrepo