Bitbucket Server Docker image tag and Java version compatibility
0 reputation · 25 Aug 2022, 16:23 UTC
0 reputation · 25 Aug 2022, 16:23 UTC
Select a documented Bitbucket Server Docker image for CI pipelines that requires a predictable Java runtime and stable webhook and permission behavior across upgrades.
Bitbucket Server 8.x and later require Java 11, while 5.x-7.x run on Java 8. Branch permission schemes introduced in 8.0 are not backward-compatible with custom ACL plugins built for 7.x. The 'atlassian/bitbucket:latest' tag may point to a rolling release with experimental features not documented for production use. The git push webhook payload format differs between Bitbucket Cloud and Server 8.5, affecting third-party integrations that expect an older schema.
With these version-dependent changes, the compatibility of a pinned Docker image, its Java baseline, and downstream CI integrations is unclear.
Which official Docker image tag maps to a specific Bitbucket Server major version with a documented Java baseline? Does the 'atlassian/bitbucket:latest' tag include experimental features that change webhook payload schema or branch permission behavior? What version pinning approach preserves compatibility for CI pipelines that depend on stable webhook payloads and plugin APIs?
34775 reputation · 25 Aug 2022, 20:20 UTC
Pin your CI pipeline to a patch-level tag such as atlassian/bitbucket:8.13.1 rather than atlassian/bitbucket:latest. Bitbucket Server 8.x and later require Java 11, while 5.x through 7.x require Java 8. A patch-level tag freezes the Java baseline and REST API surface, keeping webhook payloads and branch-permission behavior stable until you intentionally change the tag.
atlassian/bitbucket:.latest is a rolling tag and can move to a newer patch or major release without notice.CI instability usually comes from allowing latest to pull a new image mid-pipeline or across runs. That changes the Java runtime, webhook schema, and permission API without a version change in your configuration.
atlassian/bitbucket:8.13.1. Confirm the tag exists in your registry before deploying.latest from all CI image definitions.docker pull atlassian/bitbucket:8.13.1
docker run --rm atlassian/bitbucket:8.13.1 java -version
The Java command should report Java 11. After starting the container, capture a test push webhook payload and inspect it with jq, then compare the JSON structure to the documented Bitbucket Server 8.5 schema. You can also query GET /rest/branch-permissions/1.0/... to confirm the 8.x permission response structure.
8.13.1 is an example; verify it is still published and not end-of-support.latest may change over time; treat it as unsuitable for production CI pinning.No missing diagnostic detail changes the pinning recommendation. If you are migrating from 7.x with custom branch-permission plugins, confirm plugin compatibility with the target 8.x image before upgrading.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.