このページでは、スクリプト実行可能ファイルを使用する Bamboo タスクの設定方法を説明します。Linux では Bash を、Windows ではバッチ ファイルをそれぞれ使用できます。

関連ページ

スクリプト タスクを設定するには、次の手順を実行します。

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

    スクリプトの設定
    タスクの説明A description of the task, which is displayed in Bamboo.
    スクリプトの場所スクリプト ファイルの場所を選択します。
    • File — enter the location of the file in the Script file field. This can be either relative to the repository root of the plan, or absolute. You can include variables (see Bamboo variables).
    • インライン - [スクリプト本文] フィールドにスクリプトを入力します。
    引数

    Specify an argument to pass to the script. Arguments that contain spaces must be quoted. You can include variables (see Bamboo variables).

  4. 必要に応じて、環境変数と作業ディレクトリの設定を指定します。

  5. 保存をクリックします。

An example that calls a Python script (on a Linux machine):