/
How to add a requirement to a Bamboo plan using CLI

How to add a requirement to a Bamboo plan using CLI

This article explains how to add a requirement to a Bamboo plan using CLI. 

Instructions

Use the addRequirement action with plan, job and requirement parameters to add the requirement in your test plan. Ensure that the CLI client file is updated with the relevant credentials.

  1. Find the value of the requirement parameter as follows: 
    1. Under Bamboo administration, navigate to the Agents section and then select the custom.com key under Shared capabilities.

      The capability can be defined as per your choice. For this example, the capability name used is custom.com.

    2. Copy the value of the capabilityKey from the URL in the address bar; this is the value of the requirement parameter.

  2. Now, run the following CLI action with the relevant Bamboo plan name and job values:

    --action addRequirement --plan "TR-TES" --job "JOB4" --requirement "custom.com"

The action, in this example, results in the following output:

Requirement added with id 1245185.

The requirement is now available for the specified job in the User Interface view as follows:

Related content

How to add a requirement to a deployment environment using Bamboo Command Line Interface (CLI)
How to add a requirement to a deployment environment using Bamboo Command Line Interface (CLI)
More like this
How to add Bamboo CLI task in a Bamboo job with Run CLI Actions in Bamboo
How to add Bamboo CLI task in a Bamboo job with Run CLI Actions in Bamboo
More like this
How to add a job to a stage of a plan using Bamboo Command Line Interface (CLI)
How to add a job to a stage of a plan using Bamboo Command Line Interface (CLI)
More like this
Create Bamboo plans in bulk using Bamboo Command Line Interface (CLI)
Create Bamboo plans in bulk using Bamboo Command Line Interface (CLI)
More like this
How to add a stage to a plan with Bamboo Command Line Interface (CLI)
How to add a stage to a plan with Bamboo Command Line Interface (CLI)
More like this
How to add source code Checkout task in Bamboo job with Bamboo CLI
How to add source code Checkout task in Bamboo job with Bamboo CLI
More like this