

In all of my own projects, I always have Unity Cloud Build look at the master. Later on, I'll talk about creating different branches, as we add more code and make changes to our project. Unity Cloud Build will automatically monitor this branch, and whenever it detects a change, it will immediately start doing a build. Since we don't have any other branches this is where we'll always look. Let's click on the select branch option and pick master. Next, we can give it a label, so we can help find it and make it easier to organize then we're going to need to define the branch that our code is living in. First, you'll see we choose the platform which is automatically set up for us as WebGL. Select WebGL, and now we'll have to set up all the options. For now, let's focus on a WebGL build since it will be the easiest for us to test. The firs time you set up an account you'll only be able to set up one build by default. As you can see, Unity Cloud Build supports all of the major platforms that Unity itself does. In order to do this, we need to choose a platform for our project to get built on. Now that everything's connected we're able to begin doing a build. Once you've done that, go back to Unity Cloud Build and click next to set up our first target build. Now let's click add, and we should be able to link the two together. I'll make the label say Unity Cloud Build and we'll paste in the SSH key. Simply copy the contents of the key go back into Bitbucket, and add Unity Cloud Build to the SSH key list. Unity Cloud Build will automatically generate this key for us. At this point, this is the first time we're connecting our Cloud Build to our Bitbucket account we're going to need to add an SSH key. Next, we'll need to select get from the drop down menu and click next for access. Let's go back over to Bitbucket and on the homepage of our project let's copy the URL and paste it into the server URL field. Now in order for us to use Unity Cloud Build we're going to need to connect it to our source control Repo. Here I'll select JesseFreemanDemo which is the name of the account I set this up with. Here we'll give the project a name we'll call it SuperZombieRunner and we'll choose an organization by default, our username is the first option. You'll the option to create a new project. In order to do this, let's go to the Unity Cloud Build site and log in. Now it's time for us to create a Unity Cloud Build project from our Bitbucket project.
