Skip to content
Browse files

Added buildId to version.xml

  • Loading branch information...
1 parent 82fc5a2 commit 3cc91095e654fd7e162fceb505a9e3d67a1d9925 @pamval pamval committed
Showing with 7 additions and 1 deletion.
  1. +6 −0 build.xml
  2. +1 −1 package-res/version.xml
View
6 build.xml
@@ -14,6 +14,11 @@
and works with the common_build.xml file.
</description>
+
+ <property name="sequential.build.id"
+ value="1"
+ description="Property that controls the buildId on version.xml. Should be set by CI jobs" />
+
<!-- Import the subfloor-pkg.xml file which contains all the default tasks -->
<import file="build-res/subfloor-pkg.xml" />
@@ -30,6 +35,7 @@
<target name="assemble" depends="subfloor-pkg.assemble">
<!-- Update the version.xml with the current version of this plugin -->
<replace file="${approot.stage.dir}/version.xml" token="@TRUNK@" value="${project.revision}"/>
+ <replace file="${approot.stage.dir}/version.xml" token="@BUILDID@" value="${sequential.build.id}"/>
</target>
<target name="resolve-and-dist" depends="resolve, dist"/>
View
2 package-res/version.xml
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<version branch='TRUNK'>@TRUNK@</version>
+<version branch='TRUNK' buildId='@BUILDID@'>@TRUNK@</version>

0 comments on commit 3cc9109

Please sign in to comment.
Something went wrong with that request. Please try again.