Uploaded image for project: 'Eagle (Retired)'
  1. Eagle (Retired)
  2. EAGLE-663

Build git head COMMITID into eagle package and display in web page aside eagle version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • v0.5.0
    • v0.5.0
    • None
    • None

    Description

      # Get git-head commit ID
      COMMITID=`git rev-parse HEAD`
      
      # Get current maven version
      VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
      DATE=`date`
      
      # Generate 
      classes/assets/build-version.json
      # Access as static resource
      /build-version.json
      
      {
          version: "$VERSION"
          commit: "$COMMITID"
          built: "$, MacOSX, 1.8.0_74-b02"
      }
      

      Attachments

        Issue Links

          Activity

            People

              haoch Hao Chen
              haoch Hao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: