blob: 4cfac73eadcaa5fe94a605e12d7da990f958d597 [file] [log] [blame]
<project default="run" name="org.eclipse.mwe.releng/promote.xml - Promote a build from build server to production server">
<target name="run">
To use this script, you must have configured a file.
Then, run commandline:
ant -f promote.xml
If you need to reuse this script with multiple properties files (eg., from
multiple Hudson builds across multiple branches), use the commandline
ant -f promote.xml
<property name="" value="" />
<property file="${}"/>
<!-- load build properties -->
<property file="" />
<!-- calculate workspaceDir as parent of this folder, the project's .releng folder (relengBuilderDir) -->
<property name="relengBuilderDir" value="${basedir}" />
<dirname file="${relengBuilderDir}" property="workspaceDir" />
can build in /tmp, eg., in /tmp/build, or in workspace, eg.,
<property name="writableBuildRoot" value="/tmp/build" />
can be simple path, eg.,
${writableBuildRoot}/${buildType}${buildTimestamp} or longer, eg.,
${writableBuildRoot}/${topprojectName}/${projectName}/downloads/drops/${version}/${buildType}${buildTimestamp} or
<property name="buildDir" value="${writableBuildRoot}/${buildType}${buildTimestamp}-amp" />
<!-- invoke common promotion script -->
<property name="relengCommonBuilderDir" value="${workspaceDir}/org.eclipse.dash.common.releng" />
<ant antfile="${relengCommonBuilderDir}/promote.xml" dir="${relengCommonBuilderDir}" />