0% found this document useful (0 votes)
6 views8 pages

BB

Bitbucket is a Git-based code hosting and collaboration platform by Atlassian, offering features like unlimited private repositories, integrated CI/CD pipelines, and robust security options. It supports various integrations with tools such as Jira and Trello, and provides a branching strategy for effective version control. Bitbucket is available in both cloud and self-hosted versions, with different pricing plans based on user needs.

Uploaded by

mini10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

BB

Bitbucket is a Git-based code hosting and collaboration platform by Atlassian, offering features like unlimited private repositories, integrated CI/CD pipelines, and robust security options. It supports various integrations with tools such as Jira and Trello, and provides a branching strategy for effective version control. Bitbucket is available in both cloud and self-hosted versions, with different pricing plans based on user needs.

Uploaded by

mini10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Bitbucket Overview 🚀

1. What is Bitbucket?

Bitbucket is a Git-based code hosting and collaboration platform


developed by Atlassian. It provides version control, CI/CD
pipelines, and integration with Atlassian tools like Jira and
Confluence.

✅ Supports Git & Mercurial (Mercurial support was removed in


2020).
✅ Private Repositories – Unlimited private repositories.
✅ Integrated CI/CD – Bitbucket Pipelines for automation.
✅ Branch Permissions – Secure access control for teams.
✅ Jira & Trello Integration – Track issues and project management.
✅ Self-Hosted & Cloud – Available as Bitbucket Cloud & Bitbucket
Server (Data Center).

2. Bitbucket Features

🔹 Repository Management

 Unlimited Private Repos – Store your Git repositories


securely.

 Branching Strategy – Supports GitFlow, feature branches,


and hotfixes.

 Code Review & Pull Requests – Built-in PR approvals and


inline comments.

🔹 Bitbucket Pipelines (CI/CD)

 Built-in Continuous Integration & Deployment.

 Uses YAML configuration (bitbucket-pipelines.yml).

 Supports Docker, Kubernetes, AWS, GCP, Azure deployments.

🔹 Access & Security

 Branch Permissions – Restrict write access to specific


branches.

 Two-Factor Authentication (2FA) – Adds extra security.

 IP Whitelisting – Restrict repository access to specific IPs.

 SSH Keys – Secure authentication for automated access.

🔹 DevOps Integrations
 Jira – Link issues directly from commits.

 Trello – Manage tasks alongside your code.

 Slack, Microsoft Teams – Receive repo activity updates.

 SonarQube – Perform code quality analysis on Bitbucket


Pipelines.

3. Bitbucket vs. GitHub vs. GitLab

Feature Bitbucket GitHub GitLab

Bitbucket
CI/CD GitHub Actions GitLab CI/CD
Pipelines

Jira & Atlassian Open-source & Self-hosted


Best For
users general use DevOps

Free Private
✅ Unlimited ✅ Unlimited ✅ Unlimited
Repos

Bitbucket GitLab Self-


Self-Hosting GitHub Enterprise
Server Managed

Branch
✅ Yes ✅ Yes ✅ Yes
Permissions

4. Bitbucket Branching Strategy

 Main Branch (main or master) – The stable production-ready


branch.

 Develop Branch (develop) – Active development branch.

 Feature Branches (feature/*) – For new features.

 Hotfix Branches (hotfix/*) – For urgent bug fixes.

 Release Branches (release/*) – Pre-release testing.

5. Bitbucket Workflow (Git Commands)

🔹 Cloning a Repository

git clone https://bitbucket.org/user/repository.git

🔹 Creating & Switching Branches


git checkout -b feature/new-feature

🔹 Staging & Committing Changes

git add .

git commit -m "Added new feature"

🔹 Pushing Changes

git push origin feature/new-feature

🔹 Creating a Pull Request (PR)

1. Go to Bitbucket > Repository > Pull Requests.

2. Select the source branch (feature/new-feature).

3. Select the target branch (develop).

4. Add reviewers and submit PR.

6. Bitbucket Pipelines (CI/CD)

Example: Deploying to AWS S3

image: atlassian/default-image:latest

pipelines:

default:

- step:

name: Deploy to S3

script:

- aws s3 sync . s3://my-bucket-name --delete

✅ Supports Docker, AWS, GCP, Kubernetes, Helm, Terraform, and


more.

7. Bitbucket Security Best Practices

✔ Enable Two-Factor Authentication (2FA)


✔ Use SSH Keys Instead of Passwords
✔ Restrict Branch Permissions (Protect main & develop branches)
✔ Use IP Whitelisting for Secure Access
✔ Integrate SonarQube for Code Quality Checks
✔ Scan Repositories for Secrets & Credentials

8. Bitbucket Pricing

Plan Features Price

5 Users, Unlimited private repos, 50 CI/CD


Free $0
minutes

Standa Unlimited users, 2,500 CI/CD minutes, $3/


rd Permissions user

Premiu Security features, IP Whitelisting, 3,500 $6/


m CI/CD minutes user

✅ Bitbucket Server (Self-hosted) and Bitbucket Data Center are


also available for enterprises.

9. Bitbucket Integrations & Add-ons

 Jira – Track issues & commits linked to stories.

 Slack & Teams – Get repo activity notifications.

 AWS, GCP, Azure – Cloud deployment integrations.

 Terraform, Kubernetes – Infrastructure as Code (IaC)


support.

 SonarQube & Snyk – Security scanning for vulnerabilities.

10. Common Bitbucket Issues & Fixes

Issue Cause Solution

Authentication Incorrect Use SSH keys or Personal


failed credentials Access Tokens (PAT)

Multiple edits in Resolve conflicts using git


Merge conflicts
the same file merge

CI/CD pipeline Validate .bitbucket-


YAML syntax error
failing pipelines.yml
🚀 Need help with Bitbucket CI/CD, security, or best practices?
Let's discuss! 😊

Bitbucket Overview 🚀

1. What is Bitbucket?

Bitbucket is a Git-based code hosting and collaboration platform


developed by Atlassian. It provides version control, CI/CD pipelines, and
integration with Atlassian tools like Jira and Confluence.

✅ Supports Git & Mercurial (Mercurial support was removed in 2020).


✅ Private Repositories – Unlimited private repositories.
✅ Integrated CI/CD – Bitbucket Pipelines for automation.
✅ Branch Permissions – Secure access control for teams.
✅ Jira & Trello Integration – Track issues and project management.
✅ Self-Hosted & Cloud – Available as Bitbucket Cloud & Bitbucket
Server (Data Center).

2. Bitbucket Features

🔹 Repository Management

 Unlimited Private Repos – Store your Git repositories securely.

 Branching Strategy – Supports GitFlow, feature branches, and


hotfixes.

 Code Review & Pull Requests – Built-in PR approvals and inline


comments.

🔹 Bitbucket Pipelines (CI/CD)

 Built-in Continuous Integration & Deployment.

 Uses YAML configuration (bitbucket-pipelines.yml).

 Supports Docker, Kubernetes, AWS, GCP, Azure deployments.

🔹 Access & Security

 Branch Permissions – Restrict write access to specific branches.

 Two-Factor Authentication (2FA) – Adds extra security.

 IP Whitelisting – Restrict repository access to specific IPs.

 SSH Keys – Secure authentication for automated access.

🔹 DevOps Integrations

 Jira – Link issues directly from commits.


 Trello – Manage tasks alongside your code.

 Slack, Microsoft Teams – Receive repo activity updates.

 SonarQube – Perform code quality analysis on Bitbucket


Pipelines.

3. Bitbucket vs. GitHub vs. GitLab

Feature Bitbucket GitHub GitLab

Bitbucket
CI/CD GitHub Actions GitLab CI/CD
Pipelines

Jira & Atlassian Open-source & Self-hosted


Best For
users general use DevOps

Free Private
✅ Unlimited ✅ Unlimited ✅ Unlimited
Repos

GitLab Self-
Self-Hosting Bitbucket Server GitHub Enterprise
Managed

Branch
✅ Yes ✅ Yes ✅ Yes
Permissions

4. Bitbucket Branching Strategy

 Main Branch (main or master) – The stable production-ready


branch.

 Develop Branch (develop) – Active development branch.

 Feature Branches (feature/*) – For new features.

 Hotfix Branches (hotfix/*) – For urgent bug fixes.

 Release Branches (release/*) – Pre-release testing.

5. Bitbucket Workflow (Git Commands)

🔹 Cloning a Repository

git clone https://bitbucket.org/user/repository.git

🔹 Creating & Switching Branches

git checkout -b feature/new-feature


🔹 Staging & Committing Changes

git add .

git commit -m "Added new feature"

🔹 Pushing Changes

git push origin feature/new-feature

🔹 Creating a Pull Request (PR)

1. Go to Bitbucket > Repository > Pull Requests.

2. Select the source branch (feature/new-feature).

3. Select the target branch (develop).

4. Add reviewers and submit PR.

6. Bitbucket Pipelines (CI/CD)

Example: Deploying to AWS S3

image: atlassian/default-image:latest

pipelines:

default:

- step:

name: Deploy to S3

script:

- aws s3 sync . s3://my-bucket-name --delete

✅ Supports Docker, AWS, GCP, Kubernetes, Helm, Terraform, and


more.

7. Bitbucket Security Best Practices

✔ Enable Two-Factor Authentication (2FA)


✔ Use SSH Keys Instead of Passwords
✔ Restrict Branch Permissions (Protect main & develop branches)
✔ Use IP Whitelisting for Secure Access
✔ Integrate SonarQube for Code Quality Checks
✔ Scan Repositories for Secrets & Credentials
8. Bitbucket Pricing

Plan Features Price

5 Users, Unlimited private repos, 50 CI/CD


Free $0
minutes

Standa Unlimited users, 2,500 CI/CD minutes, $3/


rd Permissions user

Premiu Security features, IP Whitelisting, 3,500 CI/CD $6/


m minutes user

✅ Bitbucket Server (Self-hosted) and Bitbucket Data Center are


also available for enterprises.

9. Bitbucket Integrations & Add-ons

 Jira – Track issues & commits linked to stories.

 Slack & Teams – Get repo activity notifications.

 AWS, GCP, Azure – Cloud deployment integrations.

 Terraform, Kubernetes – Infrastructure as Code (IaC) support.

 SonarQube & Snyk – Security scanning for vulnerabilities.

10. Common Bitbucket Issues & Fixes

Issue Cause Solution

Authentication Use SSH keys or Personal Access


Incorrect credentials
failed Tokens (PAT)

Multiple edits in the


Merge conflicts Resolve conflicts using git merge
same file

CI/CD pipeline
YAML syntax error Validate .bitbucket-pipelines.yml
failing

🚀 Need help with Bitbucket CI/CD, security, or best practices?


Let's discuss! 😊

You might also like