You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "Hao Chen (JIRA)" <ji...@apache.org> on 2016/11/11 06:07:59 UTC
[jira] [Resolved] (EAGLE-663) Build git head COMMITID into eagle
package and display in web page aside eagle version
[ https://issues.apache.org/jira/browse/EAGLE-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hao Chen resolved EAGLE-663.
----------------------------
Resolution: Fixed
> Build git head COMMITID into eagle package and display in web page aside eagle version
> --------------------------------------------------------------------------------------
>
> Key: EAGLE-663
> URL: https://issues.apache.org/jira/browse/EAGLE-663
> Project: Eagle
> Issue Type: Bug
> Affects Versions: v0.5.0
> Reporter: Hao Chen
> Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> {code}
> # 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"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)