Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to how to add a requirement using addRequirement action using the Bamboo CLI appto a Bamboo plan using CLI

Instructions

Use the addRequirement action with plan, job and requirement parameters to get add the requirement added 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 shown belowfollows: 
    1. Under Bamboo administration, navigate

      to 

      to the Agents section and

      click on Key (

      then select the custom.com

      ) that is under the heading,

       key under Shared capabilities

      :
      Image Removed
    2. Refer to the URL to get the value of the capabilityKey as shown below:
      Image Removed
    Run the following CLI action
    1. .
      Image Added

      Info

      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.

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

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


The

...

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

Code Block

...

If the CLI client version is older than 9.0, update the Jira instance details in bamboo cli file.
Info
theme

...

Midnight
Requirement added with id 1245185.

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

Image Added