同時実行ビルドの設定

Bamboo の同時ビルド機能では、複数のエージェントで同時に計画を生成できます。現在のビルドが完了する前に計画が再びトリガーされる可能性が高い場合は、これが役立つことがあります。

You can configure a default value for the maximum number of builds of a plan that your Bamboo server can run concurrently, using the Bamboo administration console. This value is a default – it can be overridden on the Other tab of a plan's configuration.

You need to be a Bamboo administrator to configure concurrent builds.

On this page:

Configure the default number of concurrent builds

To configure the default number of concurrent builds of a plan allowed by Bamboo:

  1. From the Administration menu , select Overview, and then Plans.
  2. Select the Concurrent builds, then select Enable.
  3. 編集を選択します。
  4. [Default number of concurrent builds allowed (既定の許可される同時ビルド数)] の値を編集します。
  5. 保存 を選択します。

Override the default number of concurrent builds

With the per-plan settings, you can override the default number of concurrent builds and choose the execution strategy:

  1. From the Bamboo header, select Build, and then All build plans.

  2. Find the needed plan in the list and select the pencil icon to open the Plan configuration page.

  3. Go to the Other tab.

  4. Under Concurrent build configuration, select Override default number of concurrent builds. This option is possible only if the concurrent builds are enabled globally.

  5. In the Maximum number of concurrent builds field, enter the number of builds for your plan that can be excutetd at the same time.

  6. Select the applicable Execution strategy from the menu:

    • Block triggering that limits the number of concurrent builds to a set maximum, discarding any build requests that exceed this limit.

    • Stop oldest builds that allows build requests beyond the set limit but terminates the oldest ongoing builds to maintain the limit.

  7. [保存] を選択します。

Optionally, you can configure these settings with the following Bamboo Specs:

  • Java

    .pluginConfigurations(new ConcurrentBuilds()
                    .useSystemWideDefault(false)
                    .maximumNumberOfConcurrentBuilds(3)
                    .concurrentBuildsStrategy(ConcurrentBuilds.ConcurrentBuildsStrategy.STOP_OLDEST_BUILDS))
  • Yaml

    other:
      concurrent-build-plugin:
        number-of-concurrent-builds: '3'
        execution-strategy: stop-oldest-builds
最終更新日 2024 年 8 月 8 日

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

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