blob: f9cc114401f13d38cf17aaba250438fc84c4aebf [file] [log] [blame]
<project default="run" name="org.eclipse.bpel.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}" />
<!-- invoke common promotion script -->
<property name="relengCommonBuilderDir" value="/opt/public/cbi/build/org.eclipse.dash.common.releng" />
<ant antfile="${relengCommonBuilderDir}/promote.xml" dir="${relengCommonBuilderDir}" />