Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5872

Add branch name in the "build number" property

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.22, 5.2.8, 5.3.3
    • Component/s: core
    • Labels:
      None
    • Magnolia Release:
      4.5.22, 5.2.8, 5.3.3

      Description

      The "license" file exposes a BuildNumber property, which currently contains a timestamp and git revision nr; it'd be nice if this would also give the branch name. This is possible since BUILD-105. Requires updating parent poms to v29.

      Example patch (am not convinced by the "format", so please come up with better)

      diff --git a/magnolia-core/src/main/resources/info/magnolia/cms/license/license.xml b/magnolia-core/src/main/resources/info/magnolia/cms/license/license.xml
      index 1ac8b4e..f38a7d2 100644
      --- a/magnolia-core/src/main/resources/info/magnolia/cms/license/license.xml
      +++ b/magnolia-core/src/main/resources/info/magnolia/cms/license/license.xml
      @@ -20,7 +20,7 @@
           <Meta>
               <VersionNumber>${magnoliaNiceVersion}</VersionNumber>
               <Edition>${magnoliaEdition}</Edition>
      -        <BuildNumber>${magnoliaReleaseDate} (rev. ${buildScmRevisionNumber})</BuildNumber>
      +        <BuildNumber>${magnoliaReleaseDate} (rev. ${buildScmRevisionNumber} on branch ${buildScmBranch})</BuildNumber>
               <Provider>${pom.organization.name}</Provider>
               <ProviderAddress>
                   <![CDATA[
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dlipp Daniel Lipp
              Reporter:
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: