Class VersionNumberBuilder

  • All Implemented Interfaces:
    ExtensionPoint, Describable<BuildWrapper>

    public class VersionNumberBuilder
    extends BuildWrapper
    Sample Builder.

    This build wrapper makes an environment variable with a version number available to the build. For more information on how the format stream works, see the Version Number Plugin wiki page.

    This plugin keeps track of its version through a VersionNumberAction attached to the project. Each build that uses this plugin has its own VersionNumberAction, and this contains the builds today / this week / this month / this year / all time. When incrementing each of these values, unless they're overridden in the configuration the value from the previous build will be used.

    Such a value can be either overridden with a plain number or with an environment-variable. In the later case the value will be read from the environment-variable at build-time. If it cannot be parsed as an integer the value from the previous build will be incremented and used instead.

    Author:
    Carl Lischeske - NETFLIX, Deniz Bahadir - BENOCS