BitBucket
About Bitbucket
Bitbucket from Atlassian is a cloud/self-hosted version control application. It provides effective ways to manage repositories, issue tracking, and technical projects. In the most basic terms, Bitbucket empowers you with total authority over the DevOps lifecycle.
GitHub and Bitbucket
Github and Bitbucket are hosting platforms that offer developers access to both public and private repositories. The functionality of Bitbucket and GitHub is very similar, and both allow you to perform basic operations, such as:
Create and manage repositories
Utilizing Two-Factor Authentication (2FA)
Make pull requests
Perform code reviews
Enhances team collaboration and efficiency of the process.
Make use of inline editing and Markdown support
Keep track of issues, etc.
Configuring Your Bitbucket Repository
Prerequisites for registering Bitbucket with ARM
You must have a Bitbucket account. If you don’t already have a Bitbucket account, you can create one at https://start.atlassian.com/ Once you have a Bitbucket account, you can create a new repository or use an existing one.
You must have permission to register a repository.
Store your Bitbucket’s credentials in ARM.
Store your Bitbucket credential in ARM
This is an initial step where you store your user's credential (usually a username, password, or token) in ARM. To authenticate Bitbucket, you’ll have to use App Password instead of the regular password to login to your Bitbucket account.
Steps to generate a Bitbucket App Password
Log into to your Bitbucket account.
Click your account’s
profile picture
in the top right-corner of the Bitbucket webpage.Click the
Personal Settings
link in the dropdown menu.Select the link on the left labeled
App Passwords
. It is under theAccess Management
heading.Click on
Create App Password
button.Give a
label name
and check all the necessary permissions that you’d want to provide. Typically, we will requirerepository
,webhook
, andpull request permissions
.Click
Create
to generate the Bitbucket App Passwords and copy the access token’s value. You will not be able to view this password again once you close this window.Click
Save
.
Store your Bitbucket credential in ARM
Log in to your ARM account.
Hover your mouse over the
Admin
module and click on theCredentials
tab.Next, click
Create Credential
.On the next pop-up screen, give a
credential name
.Choose the
Credential Type
asUsername With Password
.Enter your Bitbucket’s
username
andApp Password
.Click
Save
.
Registering a Bitbucket repository in ARM
If you wish to set up a Bitbucket repository, ensure that you have an account created and configured at BitBucket. Next, follow the below steps:
Log in to your ARM account.
Hover your mouse over the
Admin
module and click onVC Repos
.Click on the
Register Repository
available on the right corner of the screen.On the
Register Repository
page, select theVersion Control System
asGIT
.Enter the
name
of the repository to display it locally.Paste the
Clone URL
that BitBucket provides you.
Follow the steps to copy the URL from the Bitbucket account: a. Select your registered Bitbucket repository. b. Click on
Clone
and selectHTTPS
. c.Copy the URL
to paste in the ARM. Note: Make sure to remove “git clone” before pasting the URL.
Choose the correct user's
Credentials
from the list that you saved earlier.The
Default Branch
selection will be in disabled mode by default. Click on therefresh
button to fetch and list down all the available branches on your remote repository.Select one of the default branches from the list.
Once the registration is successfully done, you can find the newly added repository on
VC Repo's
home page.
Last updated