103 – BitBucket Server Setup
This is part of an on going series where i will be building out my development environment to do continuous delivery and automated deployments. Ill be using the Atlassian suit of software for Source Control Bitbucket Server (server) and SourceTree (Client). Then Bamboo for builds and releases. Ill then be hooking it all together with RedGate SQL Source Control, DLM Automation Suite and DLM Dashboard.
My plan is to run all my CI software (Bitbucket, Bamboo, DLM Dashboard, SQL CI and SQL Release) on one server named “DLM” which part of a domain and running a new Windows 20012 r2.
The purpose of these steps isn’t necessarily to configure things in a best practice, but to get things working, If I’ve learned anything speaking with different people on this, everyone does things slightly different. Hopefully these steps will show how to configure everything from the ground up.
BitBucket Server Setup
To get started with BitBucket Server we first need to need install SQL Server (Again to keep it all simple i installed it on my DLM server), I wont go into to much detail about that as you can read more here. The one thing you have to do is create a database with the collation and create a login. Using the script below:
/* Create Bitbucket database and login */ USE [master]; GO CREATE DATABASE [BitBucket] COLLATE SQL_Latin1_General_CP1_CS_AS; GO CREATE LOGIN [Bitbucket_User] WITH PASSWORD=N'Pa$$w0rd'; GO USE [BitBucket]; GO CREATE USER [Bitbucket_User] FOR LOGIN [Bitbucket_User]; GO USE [BitBucket]; GO ALTER ROLE [db_owner] ADD MEMBER [Bitbucket_User]; GO
So lets get started open up a web browser and go to http://localhost:7990/setup
Follow the steps below:
Test connection and click Next if its successful.
Next enter a username and password (For me i want to keep it separate from my standard account i login to with)
You are then asked to login
Now we have the basics in place, Next we will need to set up Bitbucket as a service.