Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too.

このページでは、コマンド (例: Bash) 実行可能ファイルを使用する Bamboo タスクの設定方法をご説明します。

See  Configuring a builder task for an overview of Bamboo builder tasks.

コマンド タスクを設定するには、次の手順に従います。

  1. Navigate to the task configuration for the job (this will be the default job if creating a new plan).
  2. Click the name of the desired Command task, or click Add Task and then Command if creating a new task.
  3. Complete the following settings:

    Command configuration
    タスクの説明A description of the task, which is displayed in Bamboo.
    実行可能ファイルThe command executable that is available to perform the task (e.g. Bash). The executable that you select will become one of the task's (and so, the job's) requirements.
    You can add other executables, if required.
    引数
    (Optional) The relevant argument to pass to the command. Note that arguments which contain spaces must be quoted. You can include variables (see Using global, plan or build-specific variables).
  4. 必要に応じて、環境変数と作業ディレクトリの設定を指定します。
    環境変数

    (Optional)  Additional system environment variables that you want to pass to your build. Note that existing environment variables are automatically available to the executable. You can also include Bamboo global or build-specific variables (see Using global, plan or build-specific variables).
    Multiple variables should be separated with spaces. Parameters with spaces must be quoted (e.g ANT_OPTS="-Xms200m -Xmx700m").

    Working Sub Directory(オプション)  Bamboo が実行ファイルを実行する、ジョブのルート ディレクトリに相対的な代替サブディレクトリ。ルート ディレクトリには、ジョブの構成済みソース リポジトリから確認されたものがすべて含まれます。このフィールドを空白のまま残した場合、Bamboo はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。
  5. 保存をクリックします。