How to insert a custom parameter in Bamboo build?


I am solving this: I want to have a custom field in Bamboo build. The value should be asked when I run a job (or at least when "Run customized").

When I set the customValue, it should be added to maven task as:
But when I leave the value empty, it mustn´t appear in the maven task at all.

The closest I was able to get was using variable, which value was "-DmyCustomParameter=customValue", but I´d like to fill only the "customValue", not to write the name of parameter every time I run the build.

Is there a solution for that?


1 answer

This widget could not be displayed.

No built-in solution that I know, but it is possible to implement a plugin that does it.

plugin interface: TaskProcessCommandDecorator

You can find some implementations in bamboo source:


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 11 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

32 views 1 3
Join discussion

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