Build parameters: Add BUILD_SERIES. Add default values.

BUILD_SERIES = UNKNOWN
BUILD_NUMBER = ?
This commit is contained in:
asofold 2013-07-17 11:35:45 +02:00
parent 71ffa298f5
commit 793291b71b
4 changed files with 7 additions and 1 deletions

View File

@ -75,6 +75,9 @@ public class BuildParameters {
/** Timestamp from build (maven). "?" if not present. */
public static final String buildTimeString = getString("BUILD_TIMESTAMP", "?");
/** Indicate something about where this was built. */
public static final String buildSeries = getString("BUILD_SERIES", "UNKNOWN");
/** The build number as given by Jenkins. Integer.MIN_VALUE if not present. */
public static final int buildNumber = getInteger("BUILD_NUMBER", Integer.MIN_VALUE);

View File

@ -3,6 +3,7 @@
# ---- Build details ----
BUILD_TIMESTAMP=${buildTimestamp}
BUILD_SERIES=${BUILD_SERIES}
BUILD_NUMBER=${BUILD_NUMBER}
# ---- Java ----

View File

@ -1,5 +1,5 @@
name: ${project.name}
version: ${project.version}-b${BUILD_NUMBER}
version: ${project.version}-${BUILD_SERIES}-b${BUILD_NUMBER}
description: ${project.description}
author: NeatMonster

View File

@ -164,6 +164,8 @@
<!-- Properties -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<BUILD_NUMBER>?</BUILD_NUMBER>
<BUILD_SERIES>UNKNOWN</BUILD_SERIES>
</properties>
<groupId>fr.neatmonster</groupId>