The file contains three properties:
* simantics-platform.branch
* simantics-platform.commit
* simantics-platform.build.id
refs #7828
--- /dev/null
+<project default="tag-build">
+
+ <tstamp>
+ <format property="timestamp" pattern="yyyy-MM-dd'T'HH:mm:ss.SSSXXX" />
+ </tstamp>
+ <property environment="env" />
+ <property name="infofile" value="buildinfo.properties" />
+ <property name="build.id" value="${env.JOB_NAME} b${env.BUILD_NUMBER}-${timestamp}" />
+
+ <target name="tag-build">
+ <propertyfile file="${infofile}" comment="##Generated file - do not modify!">
+ <entry key="simantics-platform.branch" value="${env.GERRIT_REFSPEC}" />
+ <entry key="simantics-platform.commit" value="${env.GIT_COMMIT}" />
+ <entry key="simantics-platform.build.id" value="${build.id}" />
+ </propertyfile>
+ </target>
+
+</project>