Details
-
Type:
Improvement
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: m2release-plugin
-
Labels:None
-
Environment:Jenkins LTS 1.509.4, m2release 0.13-SNAPSHOT, Oracle JDK 1.7.0_25
-
Similar Issues:
Description
The "Number of successful release builds to keep" configuration does seem to work. I've configured it to "1", but the no release build is kept.
To reproduce:
1. Configure "Number of successful release builds to keep" to "1"
2. Do a release build
3. Do Snapshot builds until the release build is the last build
4. Do yet another Snapshot build and you'll see the release build getting disposed
Seems as I switched the order of 1) and 2) when doing my tests, which doesn't work. The configuration of "Number of successful release builds to keep" isn't applied until a release build is done. So if I re-configure and then only do Snapshot builds the new configuration will not be used.
The help text should be improved with this info. I'll fix this and issue a pull request.