Release approval policy for deployment environments

お困りですか?

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

コミュニティに質問

Every environment has its own Release approval policy setting that controls whether a release must be approved before it can be deployed to an environment and if broken releases are allowed. This setting is configurable through both the Bamboo web interface and Bamboo Specs.

Set the release approval policy in Bamboo

In the Bamboo web interface, you can define the release approval policy when setting up a new deployment environment or when editing the settings of an existing deployment environment. Learn how to create or edit a deployment environment in Bamboo

The following release approval policies are available:

  • Not broken — the release can't be marked as broken. A broken release mark has a higher priority than any number of approvals. This is the default choice.

  • Approved —  the release must be approved at least once. However, no number of approvals can override a broken release mark.

  • None — there are no requirements at all. Any release can be deployed to such an environment.

The release approval policy applies to both deployments started manually and deployments triggered automatically. Because of that, the deployment won't start if the release approval policy requirements are not met at the time of the trigger occurring.

Set the release approval policy in YAML Specs

To set the release approval policy for an environment in Bamboo YAML Specs, to the environment definition field, add a release-approval-prerequisite key with one of the following values:

  • not-broken
  • approved
  • none

例:

version: 2
# ...
QA:
  release-approval-prerequisite: approved
  # ...

Set the release approval policy in Java Specs

To set the release approval policy for an environment in Bamboo Java Specs, to the environment definition, add the releaseApprovalPrerequsitie property with one of the following values:

  • Environment.ReleaseApprovalPrerequisite.APPROVED
  • Environment.ReleaseApprovalPrerequisite.NOT_BROKEN
  • Environment.ReleaseApprovalPrerequisite.NONE

例:

Environment environment = new Environment("QA")
    .releaseApprovalPrerequisite(Environment.ReleaseApprovalPrerequisite.APPROVED);
最終更新日: 2024 年 12 月 6 日

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

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