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

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

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

  1. ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
  2. 既存のコマンド タスクの名前をクリックするか、[タスクを追加] > [コマンド] の順にクリックして、新しいタスクを作成します。
  3. Complete the following settings:
     

    タスクの説明A description of the task, which is displayed in Bamboo.
    このタスクを無効化オンまたはオフにすることで、選択的にこのタスクを実行します。
    実行可能ファイル

    タスクを実行するために利用できるコマンド実行可能ファイル (例: Bash)。選択した実行可能ファイルは、タスク (またはジョブ) の要件の 1 つとなります。

    引数
    (Optional) The relevant argument to pass to the command. Note that arguments which contain spaces must be quoted. You can include variables (see Bamboo variables).
    環境変数(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 はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。
  4. 保存をクリックします。