Tweak build.xml for jenkins running
This commit is contained in:
parent
d1531d1f7b
commit
0da145308d
1 changed files with 2 additions and 1 deletions
|
@ -61,11 +61,12 @@
|
||||||
<property name="build.number" value="${env.BUILD_NUMBER}"/>
|
<property name="build.number" value="${env.BUILD_NUMBER}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="git.revision" if="git.present">
|
<target name="git.revision">
|
||||||
<exec executable="git" dir="${src.dir}" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
|
<exec executable="git" dir="${src.dir}" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
|
||||||
<arg value="describe"/>
|
<arg value="describe"/>
|
||||||
<arg value="--tags"/>
|
<arg value="--tags"/>
|
||||||
<arg value="--always"/>
|
<arg value="--always"/>
|
||||||
|
<arg value="--match='[^(jenkins)]*'"/>
|
||||||
<arg value="HEAD"/>
|
<arg value="HEAD"/>
|
||||||
</exec>
|
</exec>
|
||||||
<condition property="project.version" value="${git.revision}" else="0.0.0">
|
<condition property="project.version" value="${git.revision}" else="0.0.0">
|
||||||
|
|
Loading…
Reference in a new issue