A Task is an operation that 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. | On this page: |
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.
To create a Task for a Job:
- Navigate to the Tasks configuration for the desired Job, i.e.
- navigate to the 'Tasks' tab when configuring an existing Job, or
- create a Plan (you will be configuring Tasks for the default Job).
- Click 'Add Task'.
- Click the desired Task type on the 'Task Types' popup.
- 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:
- Click 'Save' to save your changes.
Screenshot above: Specifying a Task for a Job — Task Types
Ordering Tasks within a Job
Tasks can be designated as Build Tasks or Final Tasks within a Job:
- Build Tasks will run sequentially in the order specified in the Job. If a Build Task fails, all subsequent tests will not be executed.
- Final Tasks will run sequentially, once the build Tasks have completed. Final Tasks will always be executed, regardless of whether any Build Tasks or other Final Tasks fail. Final Tasks will be executed even if you stopped the build manually.
To create a Task for a Job:
- Navigate to the Tasks for the desired Job.
- Drag and drop the Tasks into the desired order in the table on the left. If you want to change a Build Task to a Final Task or vice versa, drag and drop it under the desired header in the table. Your changes will be saved immediately.
Screenshot above: Existing Task — Maven 2
Notes
- About the 'Compatibility Task' — The 'Compatibility Task' is created by the 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 custom plugin. For more information, see the Bamboo 3.1 Upgrade Guide.
- 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 Configuring a new JDK.
Related Topics
Attachments:





