blob: 4cfac73eadcaa5fe94a605e12d7da990f958d597 [file] [log] [blame]
mparkerfe51ca82009-08-12 23:30:08 +00001<project default="run" name="org.eclipse.mwe.releng/promote.xml - Promote a build from build server to production server">
2 <target name="run">
3 <!--
4 To use this script, you must have configured a promote.properties file.
5
6 Then, run commandline:
7
8 ant -f promote.xml
9
10 If you need to reuse this script with multiple properties files (eg., from
11 multiple Hudson builds across multiple branches), use the commandline
12 flag -Dpromote.properties:
13
14 ant -f promote.xml -Dpromote.properties=promote.properties.R2_0_branch
15 -->
16 <property name="promote.properties" value="promote.properties" />
17 <property file="${promote.properties}"/>
18
19 <!-- load build properties -->
20 <property file="build.properties" />
21
22 <!-- calculate workspaceDir as parent of this folder, the project's .releng folder (relengBuilderDir) -->
23 <property name="relengBuilderDir" value="${basedir}" />
24 <dirname file="${relengBuilderDir}" property="workspaceDir" />
25
26 <!--
27 can build in /tmp, eg., in /tmp/build, or in workspace, eg.,
28 ${relengBuilderDir}/build
29 -->
30 <property name="writableBuildRoot" value="/tmp/build" />
31
32 <!--
33 can be simple path, eg.,
34 ${writableBuildRoot}/${buildType}${buildTimestamp} or longer, eg.,
35 ${writableBuildRoot}/${topprojectName}/${projectName}/downloads/drops/${version}/${buildType}${buildTimestamp} or
36 ${writableBuildRoot}/${topprojectName}/${projectName}/${subprojectName}/downloads/drops/${version}/${buildType}${buildTimestamp}
37 -->
mparker80392ab2009-09-05 02:19:38 +000038 <property name="buildDir" value="${writableBuildRoot}/${buildType}${buildTimestamp}-amp" />
mparkerfe51ca82009-08-12 23:30:08 +000039
40 <!-- invoke common promotion script -->
41 <property name="relengCommonBuilderDir" value="${workspaceDir}/org.eclipse.dash.common.releng" />
42 <ant antfile="${relengCommonBuilderDir}/promote.xml" dir="${relengCommonBuilderDir}" />
43 </target>
44</project>