Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-176

Make maven to add git SHA1, branch and build time to manifest.mf

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha1-done-items
    • 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.

            ppalaga Peter Palaga
            ppalaga Peter Palaga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: