Configuring a job's requirements

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

This page describes how to configure the requirements of a job.

A requirement is specified in a job or a task. A requirement specifies a capability that an agent must have for it to build that job or task. A job inherits all of the requirements specified in its tasks.

Together, capabilities and requirements control which agents can execute builds for particular jobs. Each job can only be built by agents whose capabilities match the job's requirements.

There are four types of capabilities in Bamboo that can be specified by job and task requirements:

Before you can specify a requirement in your job, you must first define that capability in your Bamboo system.

Specifying extra requirements for a job

A job will inherit the requirements of its tasks by default. However, you can specify extra requirements for a job, in addition to its task requirements.


To specify extra requirements for a job:

  1. Navigate to the desired job's configuration pages, as described on Configuring jobs.
  2. Select the Requirements tab (see screenshot below). This page shows a list of all the job's current requirements and the number of Agents and Images (i.e. agents/elastic images which meet the job's requirements and can run a build for this job). See Viewing current capable agents below for more information.
  3. Search for a capability and select a requirement from the list.
  4. Select the value for the requirement from the list:
    • exists — this job can be built by any agent that has a capability with the same key.
    • equals — this job can be built by any agent that has the capability with the same key and value.
    • matches — this job can be built by any agent that has a capability with the same key, and the value matches the regular expression. For more information about regular expressions, see Oracle's tutorial on regular expressions.
  5. Select Add. The numbers of Agents and Images will be updated, as the plan can now only be built by agents with capabilities that meet the new custom requirement you have specified.

Job requirements configuration screen

Viewing current capable agents

To view details about agents or elastic images that are currently able to build your job:

  1. On the job's Requirements tab (described above), select the name of the requirement in the table (e.g. MySQL).
  2. The summary page for the capability will be displayed, showing the agents and images that have the capability. See Viewing a capability's agents and jobs for more information.
Last modified on May 31, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.