Typically in Bamboo, your build plans are configured to be automatically triggered when code changes are committed to the working repository, or according to a schedule.

しかし、次のように計画を自動でトリガーしたくないシナリオもあります。

  • 計画を手動でのみ実行する必要がある。
  • ビルドに使用する既定のリポジトリのリビジョンを選択したい
  • You want to run a customised build, so as to override global variables or plan variables.
  • 特定の手動ステージを選択して実行したい。
  • You want the plan to be triggered by other plans that build successfully first.
This page describes how to run a plan build manually, and the options available when running a customised plan build.

プラン ビルドを手動で実行する

計画ビルドを手動で開始するには、次の手順を実行します。

  1. Locate the relevant plan on the Dashboard.

  2. Click the Run icon for the plan.

計画が表示されている場合は、[実行] メニューをクリックするだけです。

Running a customised manual build

If you trigger a plan build manually, you can customise the following aspects of how the plan is run (when these are available):

  • 使用する既定のリポジトリのリビジョンを選択します。
  • Override any global variables or plan variables with your own parameters when triggering a build manually. This is referred to as running a 'parameterised plan build'.
  • Select which manual stages to run, if manual stages have been configured for the plan.

To run a customised plan build:

  1. Locate the relevant plan on the Dashboard.
  2. 計画名をクリックして [Plan Summary (計画の要約)] に移動します。
  3. Choose Run > Run Customised.
  4. Customise the following aspects of the plan:

    revision

    ビルドに使用するリポジトリのリビジョンを選択します。

    注意:

    • 選択できるのは既定のリポジトリのリビジョンのみです。
    • このビルドは計画の統計やテレメトリに含まれません。
    • SVN リポジトリでは、リビジョン番号を使用します。
    • Perforce プロジェクトでは、チェンジリスト番号を使用します。
    • Git リポジトリでは、チェンジセット番号を使用します。
    • Mercurial リポジトリでは、タグを使用します。

     

    外部項目を利用する Subversion リポジトリに関する注意事項

    外部項目を利用する Subversion リポジトリでカスタム リビジョンのビルドを実行すると、
    Bamboo によって外部リポジトリの最新リビジョンが選択されます。これは、Subversion の外部項目では常に最新バージョンが使用され、
    特定のリビジョンに固定できないためです。 

    ビルド変数上書きする別の変数を選択するには、[Override a variable (変数を上書き)] をクリックします。
    ステージ実行するステージを選択します。
  5. [実行] をクリックします。

1 Comment

  1. Anonymous

     The above stated limitation:

    Note for Subversion repositories that make use of externals

    When running a build with a custom revision on a Subversion repository with externals, Bamboo will choose the latest revision in the external repository. This is because Subversion externals always use the latest version and cannot be fixed at a specific revision.

     ...makes the choice of the revision useless for the Subversion repositories that do make use of externals. For this reason, it would be good if the Revision UI control could be turned off on the plan level - the users can wrongly assume that they can rebuild an exact older revision of the code, whereas they would get a mix.

    BTW -Subversion externals can be fixed to specific revisions, but this is not relevant in the above context.