This plugin adds the ability to wrap your job with pre- and post- build steps which are only executed when a manual release build is triggered.
Configure the job to enable releasing
On the job configuration page, enable the release build configuration under the Build Wrapper heading and add whatever pre and post build steps you need to complete a release.
In my experience, a release build typically requires pre-build steps of validating the project is releasable and bumping the version to the release version. After the build runs as usual, the post build steps are labeling the codebase and bumping the version to the next development version.
Executing a release
To run a release, click the Release icon from the job home page. This will bring you to the release details page where you are prompted to fill in two optional values, release version and next development version. As seen above, these values are then available at job execution time as RELEASE_VERSION and DEVELOPMENT_VERSION. Finally, click the schedule release build and the job is scheduled to run immediately, now including the execution of the pre and post build steps.
Once the build is complete, the release plugin automatically locks the build, preventing it from being automatically deleted, adds a description noting the release version and adds a release icon denoting it as a release build.
Supported Job Types
The release plugin supports the Maven2 and Free Style Job type
- Matrix job support
- Add ability to pick up release notes from build output and host with build
Version 1.1 (03/26/2009)
- Add permissions on triggering a release
- Fixed issue where parameters were not being resolved
- Captured release parameters as build parameters which can now be viewed via build parameters link
Version 1.0 (02/10/2009)
- Initial release