Search Unity

Unity git checkout in cloud build fails but not when I run it myself

Discussion in 'Unity Build Automation' started by chillypacman, Apr 17, 2017.

  1. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    Looks like it doesn't know how to get the password for a submodule, from the cloud build log:

    Password for 'https://test@test.visualstudio.com': Clone of 'https://test@test.visualstudio.com/DefaultCollection/_git/Submodule' into submodule path 'Assets/Submodule' failed

    And follows with this error:

    GIT: Error during clone: git lfs clone '--branch' 'master' '--recursive' '--' 'ssh://test@test.visualstudio.com:22/DefaultCollection/_git/TestRepo' '/BUILD_PATH/xxx' 2>&1:
    ! checkout failed. git lfs clone '--branch' 'master' '--recursive' '--' 'ssh://test@test.visualstudio.com:22/DefaultCollection/_git/TestRepo' '/BUILD_PATH/xxx' 2>&1:


    Just to make sure there was nothing wrong with my setup I ran the exact same command on my computer and got a successful checkout, never asked for a password. The Unity ssh key is definitely on vsts so that shouldn't be a problem and this issue happens after it has checked out a bunch of files in the log.
     
  2. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    Hello,

    please PM me a link to your project :)

    - Sophia
     
  3. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    Ah I fixed this by updating the submodules to use ssh links too :)
     
    SophiaC likes this.