-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
Maven should be configured in such a way that .jar, .war and *.ear files will have the following new entries added to their manifest.mf files:
- Built-From-Git-SHA1 - the last git commit's hash
- Built-On - the time when the build has started
- Built-From-Git-Branch - the git branch being built from
Further, when the release profile is active, the build should fail, in case there are uncommitted local changes.
Motivation
The proposed changes should improve the traceability of the components delivered with kettle. Because we use SNAPSHOTs to build kettle ATM, there is no way to find out which state of the individual component's git repos underlie the given kettle distribution. In a situation when rhn-engineering-lkrejci has a working kettle distro and theute cannot succeed to build one, they can go through the SHA1 hashes listed in the manifest.mf files of the kettle components to find out where is the difference.