How to start up Bamboo with build plans, deployment environments, branch detection and build status updates disabled

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

要約

Fully following this article stops all automated processes (build triggers, branch detection and build status integration). Users are still able to perform builds manually through the UI

When Bamboo is started, some plans and deployment environments start to execute based on their respective triggers. It is possible to start Bamboo and prevent certain actions from happening. There are many reasons why someone would do this (e.g. troubleshooting, migration, testing upgrade, and etc). In this article we'll cover the following actions that can be disabled during the Bamboo startup process:

  1. prevent build plans and deployment environments from getting automatically triggered
  2. branches from getting created
  3. build statuses from being sent over to Bitbucket

ソリューション

Add one or more of the following JVM options to the JVM_SUPPORT_RECOMMENDED_ARGS variable, steps on how to do this in Java setting properties

引用内部では、各パラメーターをスペース区切りのリスト形式で追加します。

Disable automatic build plan and deployment environment execution 

This will prevent builds and deployment environments from getting automatically triggered based on new changes happening in the respective default repositories only – manual builds and deployments can still run. 

-Datlassian.bamboo.build.disable=true
Disable branch detection

This will prevent Bamboo from looking for new or deleted branches in any plan's default repository. In other words, new plan branches are not created and old plan branches are not disabled based on the changes in the respective repository. However, this option doesn't prevent starting a build manually.

-Datlassian.bamboo.branch.detection.disable=true
-Datlassian.bamboo.closed.branch.detection.disable=true
Disable build status updates to Bitbucket

This will prevent Bamboo from sending any build status update notifications to the Bitbucket server.

-Dbamboo.stash.disable.build.status.updates=true
Bamboo 8.2+ Disable automatic fallback to polling for Bitbucket Server, even if Application Links don't work or the Bitbucket Server plugin is disabled

This is only available on Bamboo 8.2 and later releases:

-Dbamboo.disable.stash.polling=true

After adding those settings, restart Bamboo and verify the settings.

In order to undo those changes, you'll need to remove those settings (or set them to false) from JVM_SUPPORT_RECOMMENDED_ARGS and restart Bamboo once again.

Last modified on Mar 13, 2025

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.