Connecting a Bitbucket project to OnCheckin
Bitbucket is an awesome free source control hosting service for developers using Git, if like us you’re a fan of Bitbucket you're probably excited to connect OnCheckin to your Bitbucket Git repository so you can get on with your project as soon as possible. It's incredibly easy, and takes less than 5 minutes.
What you'll need:
- A Bitbucket project with your source code already pushed up.
- Within your Bitbucket repository, a Visual Studio solution that builds and contains at least one website project.
- Any unit tests you'd like to run as part of your build checked in to *any assembly* within your project (we auto detect these).
- Read more about OnCheckin Visual Studio solution setup here.
Getting it all setup
Firstly, log into your OnCheckin console.
Click on "Add another site" or "Add new site" depending on whether this is your first project or not.
Select "Bitbucket" from the source control provider drop down.
In the new window, login to your Bitbucket account, and accept OnCheckin's request to authenticate with Bitbucket.
Select the Project you wish to deploy through OnCheckin
Now that the new window has closed, and your new details have been entered you can optionally click on “Advanced settings” and enter the sub folder that your project lives within.
This allows you to point to the folder that OnCheckin should look for your Visual Studio solution file. There can only be one solution file within this folder, so that OnCheckin uses the correct one.
Next press "Test Source Control Settings" to validate that we can connect to Bitbucket.
Now that this worked successfully, switch over to your "Deployment" tab. Now manually enter the name of your web application within your solution. This needs to be the full name as shown within your solution.
This is not the namespace, but the actual project name.
Continue entering your deployment credentials and your project is now successfully setup.
OnCheckin
41/330-370 Wattle Street
Ultimo, NSW Australia 2007
ABN: 81 163 095 681.
ACN: 163 095 681.
support@oncheckin.com
Australia: +61 2 8005 6783