Cloud Services

DevOps Intelligence

Atlassian Bitbucket, Bitbucket Cloud and Bitbucket Server
Published On Nov 05, 2024 - 1:34 PM

Atlassian Bitbucket, Bitbucket Cloud and Bitbucket Server

Learn how to configure DevOps Intelligence to collect data generated by BitBucket implementations, extending the single pane of glass DevOps Intelligence affords in your hybrid IT estate.
Bitbucket is a tool that gives teams one place to plan projects, collaborate on code, test, and deploy. It provides one place for teams to collaborate on code from concept to Cloud, build quality code through automated testing, and confidently deploy code.

Bitbucket Cloud

For DevOps Intelligence to pull data from Bitbucket Cloud, you must configure a Bitbucket Cloud account. DevOps Intelligence will require the following information to create a Bitbucket Cloud account:
  1. Name
    : peer account name. It could be any string and is used only for reference.
  2. Host
    : Bitbucket cloud Host URL.
  3. Auth Type
    : Authentication to be used for a given Bitbucket client. It has a value shown as token, which can be used for API token-based Authentication.
For API token-based authentication, the following authentication fields are required in addition to common fields:
  1. User:
    Username for Bitbucket. This is generally the username with which the user logged in to Bitbucket.
  2. APIKey:
    Personal access token, generated from the following menu selection: your profile and settings → personal settings → app passwords
The application also requires the following Bitbucket Cloud permissions:
Permissions type
Name
Account
read
Workspace membership
read
Projects
read
Pull requests
read
Issues
read
Wikis
read and write
Snippets
read
Webhooks
read and write
Pipelines
read

Bitbucket Server

Bitbucket Server is self-hosted Git repository collaboration and management for professional teams. DevOps Intelligence supports your use of Bitbucket Server. This topic describes the configuration requirements for this tool. For DevOps Intelligence to pull data from Bitbucket Server, you must configure a Bitbucket Server account.
DevOps Intelligence will require the following information to create a Bitbucket Server account:
  1. Name: peer account name. (Any string; used only for reference)
  2. Host: Bitbucket server Host URL
  3. Auth Type: Authentication to be used for a given Bitbucket client. It has a value shown as token, which can be used for API token-based Authentication.
For API token-based authentication, the following authentication fields are required in addition to common fields:
  1. User:
    Username for Bitbucket. Generally the username with which user logged in to Bitbucket.
  2. APIKey:
    Personal access token, generated from the following menu selection: your profile and settings → personal settings → app passwords.
The application also requires Bitbucket Server: Choose whether  the account belongs to Bitbucket server version.

Configuration

The user needs to select the workspace for Bitbucket Cloud. Please note that Bitbucket server doesn't support workspace. DevOps Intelligence considers
default
as a workspace for  Bitbucket server. The user needs to select the projects or repos which need to be tracked through the DevOps Intelligence tool. For this purpose, tracking can be done at two levels:
  • Project Level: This will track all the repositories comprising this project.
  • Repository Level: This will track that particular repository.

Project level tracking

For this type of tracking, certain selections have to be made in the system, as follows:
  • Account: Refers to the account through which the tracking will be done.
  • Select Workspace for Bitbucket cloud: By clicking here, a list will display showing all the workspaces that the account above selected is a part of. Select any workspace to get the list of projects and repos in it.
  • Select Tracking Type: Select
    Project
    for Project level tracking
  • Search Project: By clicking here, a list will display with all the projects the account selected is a part of, yet DevOps Intelligence still does not track it. Then, select any project to be tracked and select configure.
Do you have two minutes for a quick survey?
Take Survey