How to insert a custom parameter in Bamboo build?

Jiří Havelka November 20, 2014

Hello, 

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:
-DmyCustomParameter=customValue
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?

Thanx, 
Jiri

1 answer

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2014

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:

IsolatedTmpDirCommandDecorator,
Maven2IsolatedLocalRepositoryCommandDecorator

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events