Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information:

Commit 15bcf188 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Use Version class in HashGenerator

parent 3a7950ba
......@@ -2,6 +2,8 @@ package;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.vadere.simulator.entrypoints.Version;
import java.util.Scanner;
......@@ -9,7 +11,6 @@ public class HashGenerator {
private static Logger logger = LogManager.getLogger(HashGenerator.class);
private static final String CURRENT_RELEASE_NUMBER_RESOURCE = "/current_release_number.txt";
private static final String CURRENT_COMMIT_HASH_RESOURCE = "/current_commit_hash.txt";
public static boolean isCommitHashAvailable() {
......@@ -28,14 +29,7 @@ public class HashGenerator {
public static String releaseNumber() {
String releaseNumber = getFirstStringTokenFromResource(CURRENT_RELEASE_NUMBER_RESOURCE);
if (releaseNumber == null) {
releaseNumber = "warning: no release number";
logger.warn("No release number found. The project will not contain software release version.");
return releaseNumber;
return Version.latest().label();
private static String getFirstStringTokenFromResource(String resource) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment