You could have an object in your database for this purpose and use the GetRuntimeVersion action from community commons to set its value, together with the current date in an after start-up microflow.
Uset the java action getRuntimeVersion() (this is available in community common module)
Replace the getRuntimeVersion() method in javasource/communitycommons/Misc.java with
public static String getRuntimeVersion() {
Package currentPackage = RuntimeVersion.class.getPackage();
String specVersion = currentPackage.getSpecificationVersion();
String implVersion = currentPackage.getImplementationVersion();
if(specVersion != null && implVersion != null)
return implVersion + " (build " + specVersion + ")";
return
"unreleased";
}
this will give you build number.