Bamboo is leaving a comment on Bitbucket-Cloud repository: 'a specs-scan was successful' on commits

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Bamboo when integrated with a Bitbucket.org linked repository, automatically adds comments to commits in Bitbucket each time a spec scan is successfully completed.

This behavior is attributed to the Bitbucket cloud account connected through the app-link connection in Bamboo.

Environment

This scenario is observed with Bamboo version 9.2.4, utilizing a Bitbucket cloud repository and Bamboo Specs. But it applies to any version available.

Diagnosis

In the Bitbucket repository, under the initial commit used for the first spec scan, Bamboo adds comments for each subsequent successful spec scan.

(Auto-migrated image: description temporarily unavailable)

Cause

This activity happens due to Bamboo being set up to link with a Bitbucket.org account. This particular account is utilized by Bamboo to leave comments on commits.

Whenever a spec scan is successfully carried out, Bamboo records the outcomes as a comment on the original commit used for the scan. The linked Bitbucket cloud account, connected through the app-link, appears as the one making the comments.

Solution

To disable this automatic commenting feature by Bamboo, you need to modify the 'setenv.sh' (on Linux) or 'setenv.bat' (if you are using Windows) file located in <bamboo-install-path>/bin.

Refer to this KB: Locating important directories and files for more information.

Within this file, locate the 'JVM_SUPPORT_RECOMMENDED_ARGS' section and add the following parameter:

-Dbamboo.repository.stored.specs.commit.comment.disabled=true.

Here's how it should look after the modification:

JVM_SUPPORT_RECOMMENDED_ARGS="-Dbamboo.repository.stored.specs.commit.comment.disabled=true"

After adding this parameter, the final step is to restart Bamboo for the changes to take effect.

This action will disable the automatic addition of comments under commits in Bitbucket for each successful spec scan, ensuring that your Bitbucket repository remains clean of these automatic Bamboo comments.

Updated on March 10, 2025

Still need help?

The Atlassian Community is here for you.