-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathteamcity.xml
28 lines (19 loc) · 979 Bytes
/
teamcity.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<project name="RapidFTR---BlackBerry-Edition CI" default="package">
<property environment="env"/>
<property name="app.version" value="1.0.${env.BUILD_NUMBER}"/>
<import file="${basedir}/build.xml"/>
<property file="teamcity.properties"/>
<property name="bb-build-prefix" value="bb-build"/>
<property name="build.label" value="${bb-build-prefix}-${env.BUILD_NUMBER}"/>
<property name="package.file" value="${release.dir}/${build.label}.zip"/>
<target name="package" depends="release">
<zip destfile="${package.file}" basedir="${release.dir}"/>
</target>
<target name="deploy" depends="package">
<mkdir dir="${deployment.dir}/${build.label}"/>
<unzip src="${package.file}" dest="${deployment.dir}/${build.label}"/>
<delete dir="${deployment.dir}/latest"/>
<mkdir dir="${deployment.dir}/latest"/>
<unzip src="${package.file}" dest="${deployment.dir}/latest"/>
</target>
</project>