Search Unity

Cloud Build: Connection Timeout

Discussion in 'Unity Build Automation' started by momo_the_monster, Jan 12, 2016.

  1. momo_the_monster

    momo_the_monster

    Joined:
    Sep 3, 2014
    Posts:
    16
    I'm trying to add my first project to UCB. I've pasted the URL into the Server URL field, and selected Git as the SCM type (it's a privately-hosted BitBucket server). The URL is:

    http://[removed-for-security]/scm/mmm/figment.git

    I get an error when I click next: "There was an error: Connection timeout!".
     
    Last edited: Jan 12, 2016
  2. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    I'm assuming since you've provided an http url that it's expecting basic auth (i.e. username/password)?

    We don't technically support this type of authentication for git, instead preferring ssh access (since we can generate unique ssh keys for an organization and not require storing username/password). If you are dead set on using basic auth, you can set the user/pass in the url but it's definitely not something we recommend (as that url with the user/pass will be visible to anyone collaborating on the project).
     
  3. momo_the_monster

    momo_the_monster

    Joined:
    Sep 3, 2014
    Posts:
    16
    Aha! We have ssh access enabled but it uses a different port, and ssh:// instead of http://. It would be helpful if the instructions called out that we need to enter our SSH url. I'm up and running now, thanks!
     
  4. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Great! And ya we automatically convert http style urls for known services like github but cant make those kind of assumptions for self hosted repositories. I'll add some kind of note there for git so others don't run into this same issue.