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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

CloudBuild downloads the whole project every time by git checkout.

Discussion in 'Unity Build Automation' started by RuslanDudnikov, Sep 30, 2019.

  1. RuslanDudnikov

    RuslanDudnikov

    Joined:
    Oct 8, 2018
    Posts:
    3
    The UnityCloudBuild needs to have access to the repository. It checkouts the project and then builds it. But everytime before build a target the UnityCloudBuild downloads the whole project. I have enabled Caching Library and it reduced building time. And I cannot find an option to enable "pull changes" or read about this. Is there any way to just pull changes from a repo?
     
  2. Nieles_GH

    Nieles_GH

    Joined:
    Jun 26, 2017
    Posts:
    57
    We are noticing the same. We never used to have problems with Git LFS and data usage.
    But recently we are hitting our limits fast and need to purchase extra for more data bandwidth.
    And Unity Cloud build does seem to download the entire project size for every build.
     
  3. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,077
    I contacted Unity about this a while back and it seems to be normal behaviour. They cache the Library folder but not the source code, probably from a privacy point of view so they don't have copies of your game on their servers. There was some kind of trial system that you could ask them to enable on your account that would cache the source too but I'm not sure it was working 100%, we tried it a while ago and found it caused too many errors.
     
  4. Nieles_GH

    Nieles_GH

    Joined:
    Jun 26, 2017
    Posts:
    57
    Thanks for the info!
    Do you know if this behavior changed recently?
    Because we did not have this issue before.
     
  5. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,077
    Nieles_GH likes this.