Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 475959

Summary: [server] Unable to customize the build version displayed in the about page
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 10.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2015-08-26 15:51:36 EDT
The about page at http://localhost:8080/about/about.html contains a Build Id.

It is currently hard coded for an Orion version, specifically 10.0.0-vyyyyMMdd-HHmm

If you are packaging Orion in your own application, it would be nice to override the build id with your own application's build id.

A small change to the pom.xml would allow users to override the property in their maven build with:

-Dbuild-version="3.14159"

Additionally, this would allow you to feed the build version from Hudson into the maven build.
Comment 2 Anthony Hunter CLA 2015-09-14 16:56:04 EDT
In addition, a client would just like the Build in JSON format.

Seems like the best way is to add the API:

http://localhost:8080/version

to return:

{"build": "10.0.0.v20150914-1654"}
Comment 3 Anthony Hunter CLA 2015-09-14 16:58:07 EDT
(In reply to Anthony Hunter from comment #2)
> In addition, a client would just like the Build in JSON format.
> 
> Seems like the best way is to add the API:
> 
> http://localhost:8080/version
> 
> to return:
> 
> {"build": "10.0.0.v20150914-1654"}

This is fixed with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=b8d9690586a8a45352a4b2d7e1832070c796b802
Comment 4 Anthony Hunter CLA 2015-09-22 17:51:57 EDT
(In reply to Anthony Hunter from comment #2)
> {"build": "10.0.0.v20150914-1654"}

There is a problem introduced with the last change.

The old build id was 10.0.0-v20150914-1654. The change of the dash in "10.0.0-" to dot in "10.0.0." broke the promotion script and crap is shown in the downloads page.
Comment 5 Anthony Hunter CLA 2015-09-22 17:55:19 EDT
(In reply to Anthony Hunter from comment #4)
> (In reply to Anthony Hunter from comment #2)
> > {"build": "10.0.0.v20150914-1654"}
> 
> There is a problem introduced with the last change.
> 
> The old build id was 10.0.0-v20150914-1654. The change of the dash in
> "10.0.0-" to dot in "10.0.0." broke the promotion script and crap is shown
> in the downloads page.

Fixed with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=bd0f1dce3a48e445708295334c91d9681e97d0e5