/
Handling errors while updating more than 8 Bamboo build parameters
Handling errors while updating more than 8 Bamboo build parameters
Problem statement
An error occurs while updating more than eight build parameters.
Action Command
--action queueBuild --build "TEST-TES" --field1 "bamboo2" --value1 "%customfield_10306%" --field2 "bamboo3" --value2 "test" --field3 "bamboo4" --value3 "one" --field4 "bamboo5" --value4 "test" --field5 "custom1" --value5 "ones" --field6 "bamboo7" --value6 "12/2/2019" --field7 "bamboo8" --value7 "admin" --field8 "bamboo6" --value8 "test" --field9 "bamboo10" --value9 "test"
Error message
Error Message
Error: Unknown flag 'field9'. Error: Unexpected argument: bamboo10
Environment
Version | Server 6.3.0 |
---|---|
Application | Bamboo, Jira |
App Version | Run CLI 8.7.0, Atlassian CLI 8.7.0 |
Cause
Bamboo CLI or Run CLI recommends setting only 8 build parameters (field1, field2, field3, field4, field5, field6, field7, field8). Setting any more parameter(s) is causing the error.
Solution
Use fields parameter - a comma-separated list key: value pairs, instead of using field1, field2, field3 parameters separately.
By running the command as shown below, you can execute more than 8 build parameters using Run CLI or Bamboo CLI.
Action Command
--action queueBuild --build "TEST-TES" --fields "bamboo2, bamboo3, bamboo4, bamboo5, custom1, bamboo7, bamboo8, bamboo6, bamboo10" --value "%customfield_10306%, test, one, test, ones, 12/2/2019, admin, test, https://www.google.com/, test"
Expected output
Build TEST-TES submitted with build number 11. Build key is TEST-TES-11
, multiple selections available,
Related content
How to update stage of the plan using Bamboo Command Line Interface
How to update stage of the plan using Bamboo Command Line Interface
More like this
How to add comments to a build plan with Bamboo Command Line Interface (CLI)
How to add comments to a build plan with 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 labels to current build with Bamboo task using Run CLI Actions in Bamboo
How to add labels to current build with Bamboo task using Run CLI Actions in Bamboo
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
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