Reputation: 19468
I would like to be able to, as part of a maven build, set the build number (doesn't matter exactly what) in a properties file/class (so I can show it in a UI). Any ideas?
Upvotes: 10
Views: 4306
Reputation:
I use the maven-property-plugin to store the CruiseControl build label in a properties file (the build label is is available as a system property named 'label').
A post on how to do this with Hudson.
Upvotes: 0
Reputation: 8596
We used the Build Number Plugin now available from Codehaus. It can generate a sequential build number or allows you to use the time stamp.
Upvotes: 7