-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
Summary
The "Maven Version Variable Extractor" task is available in Bamboo but does not have any documentation regarding what it does and how to use it.
Suggestion
As per this old plugin and Configuring a variables task, the task is part of the "Variables task" bundled with Bamboo, whose documentation is Configuring a variables task.
We could add a new section to the Configuring a variables task page with details about the "Maven Version Variable Extractor" task type.
More information
Main purpose
The main purpose of this task is to extract the version from the pom.xml file from your development project and make it available to Bamboo during build time through a Bamboo variable.
How to use it
- Add the Maven Version Variable Extractor task to the plan.
- Under "Name of the Bamboo Variable to be used", set a variable name you would like to use to store the value extracted from the pom.xml.
- Change "Override POM project file" and "Scope" as desired.
- Upon running a build, the task will extract the version value from inside the POM file present in the build directory (make sure your build uses one).
- That value will be made available in the current build context through the variable you set, and can be used on tasks and releases (according to the scope you set).