-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Bamboo Specs
-
None
-
1
-
2
Problem Definition
Currently, there is no provision in Java Specs to override plan branch variables. This limitation restricts the flexibility and customization of the code, which can be crucial in certain scenarios. This restriction existst only on publishing Bamboo Specs trough maven. Check Tutorial: Create a simple plan with Bamboo Java Specs.
Suggested Solution
Develop a feature in Java Specs to allow plan branch variables to be overridden. This could possibly be implemented as a method that accepts the variable name and the new value as parameters. The function should then replace the original value with the new one during execution.
Workaround
As a temporary workaround, customer may need to manually change the variables in the code each time different values are needed. Another possible workaround might be to use external configuration files or systems for maintaining these variables, which can be changed without altering the code. However, this may not be as efficient or straightforward as having an in-built feature in Java Specs.