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 get add the requirement added in your test plan. Ensure that the CLI client file is updated with the relevant credentials.
- Find the value of the requirement parameter as shown belowfollows:
Under Bamboo administration, navigate to the Agents section and then
click on Key (select the custom.com
) under the heading,key under Shared capabilities.
Refer to the URL and getInfo The capability can be defined as per your choice. For this example, the capability name used is custom.com.
Copy the value of the capabilityKey
whichfrom the URL in the address bar; this is the value of the requirement parameter.
Now, run the following CLI action with the relevant Bamboo plan name and job values:
Code Block theme Midnight --action addRequirement --plan "TR-TES" --job "JOB4" --requirement "custom.com"
The
...
action, in this example, results in the following output:
Code Block | ||
---|---|---|
| ||
Requirement added with id 1245185. |
...
The requirement is
...
now available for the specified job in the User Interface
...
...
view as follows: