Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-26222

Add details about the "Maven Version Variable Extractor" task

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Documentation (User)
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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

      1. 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.
      2. 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).
      3. 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).

              94e733e73fd4 Robert Klimkiewicz
              7bef8aece2a3 Eduardo Collaziol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: