Versions Compared

Key

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

Problem Statement

Info

When trying to update more than 8 Bamboo build parameters its showing causing error

...

Code Block
themeMidnight
titleAction 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"

...

Code Block
themeMidnight
titleError Message
Error: Unknown flag 'field9'.
Error: Unexpected argument: bamboo10

Log Entries 

theme
Code Block
Midnight

Environment

Database Type
VersionServer 6.3.0
ApplicationBamboo, Jira
App VersionRun CLI 8.7.0, Atlassian CLI 8.6.0


Cause

Panel
bgColor#f9ecc5

Solution

info
  • According to documentation, we can set only 8 Bamboo build parameters using Run CLI or Bamboo CLI.

Solution

By executing the command as shown below, we can execute more than 8 build parameters using Run CLI or Bamboo CLI.

Code Block
themeMidnight
titleAction 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"


Code Block
themeMidnight
titleExpected output
Build TEST-TES submitted with build number 11. Build key is TEST-TES-11