Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide a way to override the rpm release number suffix for snapshot builds. #2
The plugin currently provides a way to override the rpm release number for release builds by specifying the 'release' parameter.
For snapshot builds you can override the rpm release prefix with the 'snapshotReleasePrefix' parameter.
However there is no way to override the rpm release suffix. In my case I would like to set a 'snapshotReleaseSuffix' parameter and make it equal to the build number from our automated build system. (Instead of the default timestamp suffix.)
That way I can easily reference the rpm I've just built in later build steps.
It occurs to me that just allowing the release argument to override the snapshot release number if it's defined is probably even better.
i.e. if the 'release' parameter is specified then always use it, otherwise do your current automatic stuff.
So letting the release property always override it works a bit against the initial idea. Which was to be able to configure the while thing in a top level project and then let it decide on its own wether it is a snapshot build or not and then automatically attach a build id (currently fixed the current time). But constructing a release string which is "0.*" for all snapshots and "1" it this is not a release build.
I do understand that for snpashot builds you don't want to rely on the automatic generated timestamp. And I do understand that. So my proposal would be to define a
Would that work for you?