in our nightly-build.yaml workflow, we should determine the current SNAPSHOT version and tweak it. My suggestion would be to replace SNAPSHOT with the current timestamp (e.g. date +%m_%d_%H) and the suffix -SNAPSHOT so 2024.12.001-beta-SNAPSHOT would become 2024.12.001-beta-12_21_12-SNAPSHOT (for the time of writing this). We do not need to modify any files but could pass this via-Drevision=${tweakedVersion}to the maven build command what should override therevisionfrommaven.config`.
in our
nightly-build.yaml
workflow, we should determine the current SNAPSHOT version and tweak it. My suggestion would be to replaceSNAPSHOT
with the current timestamp (e.g.date +%m_%d_%H
) and the suffix-SNAPSHOT
so2024.12.001-beta-SNAPSHOT
would become2024.12.001-beta-12_21_12-SNAPSHOT (for the time of writing this). We do not need to modify any files but could pass this via
-Drevision=${tweakedVersion}to the maven build command what should override the
revisionfrom
maven.config`.