mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-02 16:37:25 +02:00
Build parameters: Add BUILD_SERIES. Add default values.
BUILD_SERIES = UNKNOWN BUILD_NUMBER = ?
This commit is contained in:
parent
71ffa298f5
commit
793291b71b
@ -75,6 +75,9 @@ public class BuildParameters {
|
|||||||
/** Timestamp from build (maven). "?" if not present. */
|
/** Timestamp from build (maven). "?" if not present. */
|
||||||
public static final String buildTimeString = getString("BUILD_TIMESTAMP", "?");
|
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. */
|
/** The build number as given by Jenkins. Integer.MIN_VALUE if not present. */
|
||||||
public static final int buildNumber = getInteger("BUILD_NUMBER", Integer.MIN_VALUE);
|
public static final int buildNumber = getInteger("BUILD_NUMBER", Integer.MIN_VALUE);
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# ---- Build details ----
|
# ---- Build details ----
|
||||||
BUILD_TIMESTAMP=${buildTimestamp}
|
BUILD_TIMESTAMP=${buildTimestamp}
|
||||||
|
BUILD_SERIES=${BUILD_SERIES}
|
||||||
BUILD_NUMBER=${BUILD_NUMBER}
|
BUILD_NUMBER=${BUILD_NUMBER}
|
||||||
|
|
||||||
# ---- Java ----
|
# ---- Java ----
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: ${project.name}
|
name: ${project.name}
|
||||||
version: ${project.version}-b${BUILD_NUMBER}
|
version: ${project.version}-${BUILD_SERIES}-b${BUILD_NUMBER}
|
||||||
description: ${project.description}
|
description: ${project.description}
|
||||||
|
|
||||||
author: NeatMonster
|
author: NeatMonster
|
||||||
|
@ -164,6 +164,8 @@
|
|||||||
<!-- Properties -->
|
<!-- Properties -->
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<BUILD_NUMBER>?</BUILD_NUMBER>
|
||||||
|
<BUILD_SERIES>UNKNOWN</BUILD_SERIES>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<groupId>fr.neatmonster</groupId>
|
<groupId>fr.neatmonster</groupId>
|
||||||
|
Loading…
Reference in New Issue
Block a user