This is the documentation for Bamboo 5.5. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

タスク:
  • ソース コードのチェックアウト、Maven 目標の実行、スクリプトの実行、またはテスト結果の解析など、作業の小さな個別の単位です。
  • Is run sequentially within a job on a Bamboo working directory.

Tasks may make use of an executable if required. Once a task is defined in the Bamboo system, it can then be specified in jobs by a plan administrator. A job can be configured to execute a number of tasks, on the same working directory. For example, before executing a Maven goal, the user could substitute specific files within the working directory, substitute version numbers, checkout source repositories or execute a script.

Creating a task for a job

When creating a new job or configuring an existing one, you need to specify the tasks that will execute the job's builds. You must specify an executable for each task. If you specify an Ant, Grails or Maven executable, you will also need to choose a JDK.

When creating a new plan, you can configure the tasks for the plan's default job.

ジョブのタスクを作成する方法

  1. Navigate to the tasks configuration for the desired job, i.e.
  2. Click Add Task.
  3. Click the desired task type in the 'Task Types' dialog.
  4. Update the values to configure the task as desired. The fields displayed will vary depending on the executable chosen. See the following pages for further details:
  5. 保存をクリックします。

Screenshot: Specifying a task for a job — Task Types


Ordering the tasks in a job

タスクはジョブ内でビルド タスクまたは最終タスクとして指定することができます。

  • ビルド タスクは、ジョブ内で指定された順番で実行されます。ビルド タスクが失敗すると、後続のすべてのテストは実行されません。
  • ビルド タスクが完了すると、最終タスクが順番に実行されます。ビルド タスクやその他の最終タスクが失敗したかどうかにかかわらず、最終タスクは常に実行されます。ビルドを手動で停止した場合でも、最終タスクは実行されます。

ジョブのタスクの順番を設定する方法

  1. 目的のジョブのタスクに移動します。
  2. 左側の表でタスクを目的の順番にドラッグ アンド ドロップします。ビルド タスクを最終タスクに、あるいはその逆に変更する場合は、表の目的のヘッダーの下にドラッグ アンド ドロップします。変更はすぐに保存されます。

スクリーンショット: 既存のタスク — コマンド タスク


注意

  • Adding new executables — At least one executable is configured automatically after installing Bamboo. You can add more executables of different types as described in Configuring a New Executable.
  • Adding new JDKs — At least one JDK is configured automatically after installing Bamboo. You can add more JDKs as described in Defining a new JDK capability.
  • About the 'Compatibility Task' — The 'Compatibility Task' is created by Bamboo when upgrading from Bamboo 3.0 or earlier and Bamboo cannot match a builder to a task. This may occur if you are using a builder enabled by a custom plugin.