# Bitbucket

**Bitbucket** 是由 [Atlassian](https://www.edgepedia.org/zh/atlassian) 开发的 Git 托管与代码协作服务，提供多租户云服务（Bitbucket Cloud）、自管理企业产品（Bitbucket Data Center）以及集成的 CI/CD 平台（Bitbucket Pipelines）三种形态。它于 2008 年以 [Mercurial](https://www.edgepedia.org/zh/mercurial) 版本控制系统的托管服务起步，2010 年被 Atlassian 收购，如今以 Git 为核心。

| 关键事实 | 详情 |
|---|---|
| 创立 / 收购 | 2008 年作为 Mercurial 托管服务上线；2010 年 9 月 29 日被 Atlassian 收购，当时拥有逾 60,000 个账户<sup>[1](https://www.atlassian.com/blog/archives/atlassian_acquires_bitbucket_org_distributed_version_control_system_hosting%24)</sup> |
| 部署选项 | Bitbucket Cloud（多租户 SaaS）、Bitbucket Server（自管理，已退役）、Bitbucket Data Center（集群式自管理）<sup>[2](https://confluence.atlassian.com/bitbucketserver080/bitbucket-rebrand-faq-1115143554.html)</sup> |
| 版本控制 | 上线时仅支持 Mercurial；2020 年 7 月 1 日移除 Mercurial 支持；此后仅支持 Git<sup>[3](https://www.atlassian.com/bitbucket/blog/sunsetting-mercurial-support-in-bitbucket%29)</sup> |
| Server 终止支持 | 2024 年 2 月 15 日；Bitbucket 8.14 是最后一个 Server 许可版本，8.15.0 是首个仅限 Data Center 的版本<sup>[4](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-8-19-release-notes-1354498386.html)</sup> |
| Data Center 未来 | 大多数 Atlassian Data Center 产品于 2029 年 3 月 28 日终止生命周期，但 Bitbucket 和 Bamboo Data Center 依据 Bitbucket Hybrid License 继续运营<sup>[5](https://www.atlassian.com/licensing/data-center-end-of-life)</sup> |
| 云版定价 | 最多 5 名用户免费；Standard 每用户每月 3.65 美元（每月 2,500 构建分钟）；Premium 每用户每月 7.25 美元（每月 3,500 构建分钟）<sup>[6](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/)</sup> |
| 仓库限制 | Cloud 仓库单个软限制 2 GB、硬限制 4 GB；免费计划工作区总存储限制为 1 GB<sup>[7](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)</sup> |

## 历史

Bitbucket 于 2008 年上线，当时集中式版本控制仍是行业常态，它仅支持 Mercurial 仓库。Atlassian 是一家成立于 2002 年的澳大利亚软件公司，于 2010 年 9 月 29 日宣布收购 Bitbucket.org，称该服务拥有 60,000 个账户，是 Mercurial 领域领先的托管代码协作提供商<sup>[1](https://www.atlassian.com/blog/archives/atlassian_acquires_bitbucket_org_distributed_version_control_system_hosting%24)</sup>。

2012 年 5 月，Atlassian 发布了 Stash，一款面向企业团队的自管理 Git 仓库管理工具<sup>[8](https://www.atlassian.com/blog/2012/05/01/atlassian-stash-enterprise-git-repository-management)</sup>。2015 年 9 月 22 日，随着 Bitbucket Server 4.0 的发布，Atlassian 将其 Git 产品统一在一个名称之下：Bitbucket Cloud（最初的托管服务）、Bitbucket Server（原 Stash）和 Bitbucket Data Center（原 Stash Data Center），后者是面向高可用性和大规模场景的集群部署方案<sup>[2](https://confluence.atlassian.com/bitbucketserver080/bitbucket-rebrand-faq-1115143554.html)</sup>。

## Mercurial 的退场

Bitbucket 的起家系统未能挺过市场向 Git 的转向。在宣布这一消息时，Stack Overflow 开发者调查显示 Git 的采用率已接近开发者总数的 90%，Mercurial 约为 3%，而新 Bitbucket 用户中选择 Mercurial 的不足 1%<sup>[3](https://www.atlassian.com/bitbucket/blog/sunsetting-mercurial-support-in-bitbucket%29)</sup>。Atlassian 在该平台上的注册用户也已突破 1,000 万<sup>[3](https://www.atlassian.com/bitbucket/blog/sunsetting-mercurial-support-in-bitbucket%29)</sup>。

移除工作分阶段进行：2020 年 2 月 1 日之后无法创建新的 Mercurial 仓库；2020 年 7 月 1 日，所有 Mercurial 仓库、维基页面和代码片段变为只读（因 COVID-19 疫情从 6 月 1 日延期）；2020 年 8 月 26 日，所有 hg 仓库被禁用<sup>[3](https://www.atlassian.com/bitbucket/blog/sunsetting-mercurial-support-in-bitbucket%29)</sup>。经过两年的客户宽限期后，这些仓库被删除，恢复或上传支持于 2022 年 3 月 30 日终止<sup>[9](https://community.atlassian.com/forums/discussion/2346793/is-there-a-way-to-access-old-mercurial-repos)</sup>。

## 部署选项

**Bitbucket Cloud** 是一项全托管的多租户服务，面向不希望自行运行基础设施的组织<sup>[2](https://confluence.atlassian.com/bitbucketserver080/bitbucket-rebrand-faq-1115143554.html)</sup>。免费计划覆盖最多 5 名用户，提供无限量公有和私有仓库、每月 50 构建分钟以及 1 GB Git LFS 存储；Standard 计划以每用户每月 3.65 美元的价格增加 2,500 构建分钟和 5 GB LFS 存储；Premium 计划以每用户每月 7.25 美元的价格增加强制合并检查、IP 白名单、部署权限、强制两步验证和 3,500 构建分钟<sup>[6](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/)</sup>。单个仓库有 2 GB 软限制，推送在 4 GB 时被阻止；大文件应迁移至 Git LFS<sup>[7](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)</sup>。

**Bitbucket Data Center** 是自管理的集群式产品，专为拥有数千名开发者且要求持续在线的企业设计。集群模式让多个 Bitbucket 节点共用同一数据库、文件系统和搜索基础设施运行<sup>[10](https://confluence.atlassian.com/alldoc/files/278071997/975016904/1/1563921466682/BitbucketServer63Documentation.pdf)</sup>。从 8.0 版本起，Bitbucket Mesh 以使用本地磁盘的复制节点取代基于 NFS 的共享文件系统来存储 Git，使 Git 处理更贴近存储以降低 I/O 延迟，并消除了共享文件系统这一单点故障<sup>[11](https://confluence.atlassian.com/bitbucketserver/bitbucket-mesh-1128304351.html)</sup>。

Server 产品线已经终结。Atlassian 于 2024 年 2 月 15 日终止对 Server 许可的支持；Bitbucket 8.14 是 Server 可用的最后一个功能版本，8.15.0 是首个仅限 Data Center 的版本<sup>[4](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-8-19-release-notes-1354498386.html)</sup>。Atlassian 已宣布大多数 Data Center 产品于 2029 年 3 月 28 日终止生命周期，但 Bitbucket 和 Bamboo Data Center 是例外：它们将在该日期之后继续运营，现有客户可获得一份 Bitbucket Hybrid License，以单一许可覆盖 Bitbucket Data Center、Bamboo Data Center 和 Bitbucket Cloud<sup>[5](https://www.atlassian.com/licensing/data-center-end-of-life)</sup>。

## Bitbucket Pipelines

Pipelines 是 Bitbucket 内置的 CI/CD 服务，通过 `bitbucket-pipelines.yml` 文件进行配置。步骤在 Docker 容器中运行，规格可配置：默认的 1x 步骤获得 2 个 CPU、4 GB 内存和 64 GB 卷空间，最高可扩展至 32x，即 64 个 CPU 和 128 GB 内存；4x 及以上规格需要付费计划，并按规格大小成比例消耗构建分钟<sup>[12](https://support.atlassian.com/bitbucket-cloud/docs/global-options/)</sup>。步骤默认在 120 分钟后超时，最长可配置至 720 分钟，一条流水线最多可包含 100 个步骤<sup>[12](https://support.atlassian.com/bitbucket-cloud/docs/global-options/)</sup>。

2024 年 6 月，Atlassian 发布了新一代运行时，构建速度最高提升 8 倍，并新增 4x 和 8x 步骤规格；旧版运行时于 2024 年 9 月 17 日退役，届时 1x 和 2x 构建被自动迁移<sup>[13](https://www.atlassian.com/blog/bitbucket/announcing-our-new-ci-cd-runtime-with-up-to-8x-faster-builds)</sup>。构建可在 Atlassian 的云运行器上运行，也可在客户自有基础设施上的自托管运行器上运行<sup>[14](https://support.atlassian.com/bitbucket-cloud/kb/bitbucket-runners-comparison/)</sup>。

自托管运行器从 V5 版本起转为付费模式，于 2025 年 12 月 3 日宣布：许可费为每个并发构建槽位每月 15 美元，Standard 工作区包含一个免费槽位，Premium 包含两个<sup>[15](https://www.atlassian.com/blog/bitbucket/announcing-v5-self-hosted-runners?trk=public_post_comment-text)</sup>。在客户反对后，Atlassian 于 2026 年 2 月撤销了原定的免费运行器版本弃用计划，保留了一个允许最多 100 个自托管运行器的免费层级，与付费高级层级并存<sup>[15](https://www.atlassian.com/blog/bitbucket/announcing-v5-self-hosted-runners?trk=public_post_comment-text)</sup>。

## AI 功能

Atlassian 的 Rovo Dev 代理与 Bitbucket 集成，用于 AI 辅助代码审查、构建失败排查和基于终端的开发任务<sup>[16](https://www.atlassian.com/software/bitbucket/features/ai)</sup>。Atlassian Rovo MCP Server 将 Bitbucket Cloud 工具（包括拉取请求、流水线和部署操作）暴露给 Claude、ChatGPT、Cursor 和 VS Code 等外部 AI 客户端，通过限定范围的 API 令牌进行认证<sup>[17](https://www.atlassian.com/blog/bitbucket/the-atlassian-rovo-mcp-server-now-supports-bitbucket-cloud)</sup>。

Atlassian 对 RovoDev Code Reviewer 在 1,900 多个仓库和 54,000 多条生成的审查评论上进行了评估，报告称其 38.70% 的评论在后续提交中促成了代码变更，拉取请求周期时间缩短了 30.8%，人工撰写的审查评论减少了 35.6%<sup>[18](https://arxiv.org/abs/2601.01129)</sup>。

## 可靠性与安全

Bitbucket Cloud 曾发生过多次重大故障。2025 年 1 月 21 日 UTC 14:02 至 17:49，API 流量增加导致一张高流量数据库表出现写入争用，客户无法使用网站、API 或 Pipelines；通过 SSH 的 Git 托管未受影响，总解决时间约为 3 小时 47 分钟<sup>[19](https://apistatuscheck.com/api/bitbucket/history)</sup>。2025 年 7 月 1 日的另一次中断被追溯为网络配置错误<sup>[19](https://apistatuscheck.com/api/bitbucket/history)</sup>。

在 2025 年 1 月那次故障的同一天，Atlassian 发布了一份安全公告，披露 Bitbucket Data Center 和 Server 中的高危漏洞，包括第三方依赖中的 CVE-2024-38819 以及 XStream 依赖中的拒绝服务问题 CVE-2024-47072，两者的评分均为 7.5<sup>[20](https://confluence.atlassian.com/security/security-bulletin-january-21-2025-1489803942.html)</sup>。凭据卫生是一个反复出现的风险点：一名研究人员对公开仓库进行扫描，在 260 万个 Bitbucket 仓库中发现了 6,200 多条机密信息，如 API 密钥和令牌<sup>[21](https://www.techradar.com/pro/security/security-researcher-uncovers-17-000-secrets-in-public-gitlab-repositories)</sup>。

## 在 Git 平台中的位置

Bitbucket 与 GitHub 和 GitLab 竞争，使用份额较小。在 GitLab 的 2020 年开发者调查中，11% 的受访者使用 Bitbucket，而 GitLab 为 59%，GitHub 为 23%<sup>[22](https://about.gitlab.com/resources/downloads/2020-devsecops-report.pdf)</sup>。它历来最大的吸引力在于与更广泛的 Atlassian 套件的集成，尤其是用于问题跟踪的 Jira 和用于文档的 [Confluence](https://www.edgepedia.org/zh/confluence)，以及早期为小团队提供的免费私有仓库——这一点 GitHub 当时并未跟上<sup>[2](https://confluence.atlassian.com/bitbucketserver080/bitbucket-rebrand-faq-1115143554.html)</sup>。在一项关于开源 Android 应用的研究中，84,475 个收集到的应用中有 7,899 个带有 CI/CD 配置，其中仅 29 个托管在 Bitbucket 上，绝大多数托管在 GitHub 上<sup>[23](https://arxiv.org/abs/2210.12581)</sup>。

## References

1. [Atlassian Acquires Bitbucket.org, Distributed Version Control System Hosting, Inside Atlassian (September 29, 2010)](https://www.atlassian.com/blog/archives/atlassian_acquires_bitbucket_org_distributed_version_control_system_hosting%24)
2. [Bitbucket rebrand FAQ, Atlassian Support](https://confluence.atlassian.com/bitbucketserver080/bitbucket-rebrand-faq-1115143554.html)
3. [Sunsetting Mercurial support in Bitbucket, Inside Atlassian (April 21, 2020)](https://www.atlassian.com/bitbucket/blog/sunsetting-mercurial-support-in-bitbucket%29)
4. [Bitbucket Data Center 8.19 release notes, Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-8-19-release-notes-1354498386.html)
5. [Data Center End of Life, Atlassian](https://www.atlassian.com/licensing/data-center-end-of-life)
6. [Manage your plan and billing, Bitbucket Cloud, Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/)
7. [Reduce repository size, Bitbucket Cloud, Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)
8. [Meet Atlassian Stash: Git Repository Management for Enterprise Teams, Inside Atlassian (May 1, 2012)](https://www.atlassian.com/blog/2012/05/01/atlassian-stash-enterprise-git-repository-management)
9. [Is there a way to access old mercurial repos?, Atlassian Community](https://community.atlassian.com/forums/discussion/2346793/is-there-a-way-to-access-old-mercurial-repos)
10. [Documentation for Bitbucket Server 6.3, Atlassian](https://confluence.atlassian.com/alldoc/files/278071997/975016904/1/1563921466682/BitbucketServer63Documentation.pdf)
11. [Bitbucket Mesh, Bitbucket Data Center documentation, Atlassian](https://confluence.atlassian.com/bitbucketserver/bitbucket-mesh-1128304351.html)
12. [Global options, Bitbucket Cloud, Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/global-options/)
13. [Announcing our new CI/CD runtime, with up to 8x faster builds, Inside Atlassian (June 2024)](https://www.atlassian.com/blog/bitbucket/announcing-our-new-ci-cd-runtime-with-up-to-8x-faster-builds)
14. [Bitbucket Runners Comparison, Bitbucket Cloud, Atlassian Support](https://support.atlassian.com/bitbucket-cloud/kb/bitbucket-runners-comparison/)
15. [Announcing powerful upgrades & a new pricing model for self-hosted runners, Inside Atlassian (December 3, 2025)](https://www.atlassian.com/blog/bitbucket/announcing-v5-self-hosted-runners?trk=public_post_comment-text)
16. [AI & Bitbucket, Atlassian](https://www.atlassian.com/software/bitbucket/features/ai)
17. [The Atlassian Rovo MCP Server now supports Bitbucket Cloud, Inside Atlassian](https://www.atlassian.com/blog/bitbucket/the-atlassian-rovo-mcp-server-now-supports-bitbucket-cloud)
18. [RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian, arXiv](https://arxiv.org/abs/2601.01129)
19. [Bitbucket Outage History & Incident Reports, API Status Check](https://apistatuscheck.com/api/bitbucket/history)
20. [Security Bulletin - January 21 2025, Atlassian Support](https://confluence.atlassian.com/security/security-bulletin-january-21-2025-1489803942.html)
21. [Security researcher uncovers 17,000 secrets in public GitLab repositories, TechRadar](https://www.techradar.com/pro/security/security-researcher-uncovers-17-000-secrets-in-public-gitlab-repositories)
22. [2020 DevSecOps Report, GitLab](https://about.gitlab.com/resources/downloads/2020-devsecops-report.pdf)
23. [A First Look at CI/CD Adoptions in Open-Source Android Apps, arXiv](https://arxiv.org/abs/2210.12581)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 19, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 19, 2026; Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Development tools and collaboration infrastructure › Version control and collaboration platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/bitbucket

English original: https://www.edgepedia.org/bitbucket
