Bamboo CI with Unity — Part 1
Here’s the first of a series of steps needed to setup a Bamboo CI for a Unity based project.
Create a new Bamboo project using Create -> Create Project, and fill-in the required details.
Once the project is created, before creating a plan, you may need to link the code repository to Bamboo so that it can be used in the plans.
Linked Repositories
To create a linked repository, Click the settings icon and select Linked Repositories
Fill in the repository URL, if the git url is SSH based then select the authentication type as SSH private key, select Use custom SSH key option.
Click the choose file button to upload your private key (generally .ssh/id_rsa). There is a catch using the private key though. Bamboo supports only private keys in PEM, if you have created your private keys with default RFC4716, then the connection may fail with a weird error message. To convert an RFC4716 private key to PEM you can use the following command
ssh-keygen -p -m PEM -f ~/.ssh/id_rsa
Once you have selected the private key, enter your SSH passphrase that you have used while generating your SSH key and hit “Save” button. Once the repository is saved, you can hit the “Test Connection” button to confirm the given parameters connect to your repository.
If your repository is empty, Bamboo may throw an error saying master branch may have been removed when doing “Test Connection”, in such case create a dummy README file in your repository and push it to master brach to get over that error message.
Part II of this article is on “Dockerising Unity to use with CI” in the coming days.