Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DustyScreen · Jul 21, 2015 at 12:22 PM · gitcloud build

Unity Cloud Build: Using git branches in Source Tree

I've used Git + BitBucket + Source Tree with Unity for quite some time and I really like it!

I'm trying out Unity Cloud Build. It works fine as long as I'm only using the master branch.

However I really want to try out having a separate branch for cloud builds, so I (and my teammembers) don't build every time we commit. But I don't know that much about branching.

I've tried to setup a branch in Source Tree, like this:

alt text

In the web interface of Unity Cloud Build, I have changed the branch: Source Control -> Branch: UnityCloudBuild

But the Unity-Cloud-Build-bot doesn't seem to notice it, when I try to push to both the master branch and the UnityCloudBuild branch like this:

alt text

Am I doing something wrong branch-wise in Source Tree? Or what exact steps do I have to do from Source Tree, to push to the UnityCloudBuild branch, so that Unity-Cloud-Build-bot registres it?

Any help and resources are most welcome! Thanx in advance!

skærmbillede-2015-07-21-kl-134422.png (250.0 kB)
skærmbillede-2015-07-21-kl-134605-copy.png (183.9 kB)
Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image David-Berger ♦♦ · Jul 21, 2015 at 12:43 PM 1
Share

Can you checkout the repository in a different location and change to the UnityCloudBuild branch? Does it include all your changes? If that works properly it should also acknowledge the branch in UCB.

When you try to build the project in UCB with your UnityCloudBuild branch, does it fail? What does the extended log say?

avatar image DustyScreen · Jul 21, 2015 at 12:59 PM 0
Share

Excellent suggestions! I've now cloned the project (from the UnityCloudBuild branch) on another location, and you were right, it didn't get any of the commits (even though I pushed to both):

alt text

So I think I need to commit / push (/merge?) differently from what I am doing now in Source Tree? Can anyone help me on that one?

Thanks in advance!

skærmbillede-2015-07-21-kl-144939.png (215.1 kB)
avatar image David-Berger ♦♦ · Jul 21, 2015 at 01:20 PM 1
Share

Did you commit your changes first, and then pushed the changes successfully to the branch?

https://vimeo.com/40159534

avatar image David-Berger ♦♦ · Jul 21, 2015 at 04:55 PM 1
Share

I think you are still on your master branch and have committed the changes only to the master branch. In your image you see the Branches and the master branch is highlighted.

alt text

When you checkout the UnityCloudBuild branch you need to commit the changes too. It's not possible to push the changes to more than one branch (the one you work on) So in this case you would need to merge the master branch with your Cloud Build Branch.

In this case you would checkout your Cloud Build Branch (highlighted) and then if you right click onto the master branch you get a $$anonymous$$erge $$anonymous$$aster into Cloud Build. But there is documentation on the web on how to do proper branching.

I hope that makes sense?

screen-shot-2015-07-21-at-174810.png (16.1 kB)
avatar image David-Berger ♦♦ · Jul 22, 2015 at 09:10 AM 1
Share

Glad it works! No worries, that's not a big deal, you might be able to like comments too if they are helpful so others see what's useful at a glance! :-)

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by DustyScreen · Jul 22, 2015 at 07:08 AM

Here is how I got it working:

  1. Commit and push all changes in the master branch

  2. Change branch to UnityCloudBuild branch by double-clicking it in the left-site panel (so UnityCloudBuild turns bold)

  3. Click the Merge-button in the top menu

  4. Select the upmost commit (so the line turns blue) and press the OK-button in the bottom alt text

  5. Push the changes (that is, click the Push-button in the top menu, and OK in the following dialogue box)

  6. Change branch back to master branch by double-clicking it in the left-site panel (so master turns bold again)

  7. Make a cup of coffee and enjoy the fresh cloud build of your fantastic game!


skærmbillede-2015-07-22-kl-084725.png (355.4 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Cannot Build with Unity Cloud Build 1 Answer

Behaviour is missing when using project on different computer. 1 Answer

Git submodule error in Unity 0 Answers

Downloading files with Git 0 Answers

How to best store default SceneManager setup in git repo? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges