Working example for Bamboo CLI-Plugin?

I'm trying to use the CLI-Plugin for Bamboo, using the examples as seen here https://bobswift.atlassian.net/wiki/display/BCLI/Examplesbut can't get it to work. When I run the job, I get the following error:

simple	08-Apr-2014 14:54:41	Requested action: bamboo --action queueBuild --build "BAC-MDMAS"  --wait 
simple	08-Apr-2014 14:54:41	Action exit code: PARAMETER_PROBLEM
simple	08-Apr-2014 14:54:41	Action output: 
simple	08-Apr-2014 14:54:41	
simple	08-Apr-2014 14:54:41	Error: Unexpected argument: bamboo
simple	08-Apr-2014 14:54:41	Error: Parameter 'server' is required.
simple	08-Apr-2014 14:54:41	Error: Parameter 'password' is required.

Are there some examples somewhere, that actually show me how to use the plugin in a way that works?

1 answer

1 accepted

The examples referenced assume that you are running from a command line and have customized the bamboo script to include your server and credentials so you do not need to repeat them all the time. See the instructions at the top of the page for links on how to do that for command line support. Alternatively or when used as part of a CLI plugin script: add the server, user, and password parameters appropriate for your installation. BCLIP-15 is an improvement request when using this in the plugin to provide a way to reference configured settings to avoid repeating the same information for each use.

And is there a way to have more than one command in a single CLI-Plugin task?

Is there a way to add the server, user and password in a way, that it doesn't have to be added for every command, when using a CLI plugin inline-script?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,796 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you