Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
trigger.xml 9.07 KiB
<project default="N-Build">
	<property file="trigger.properties" />

	<target name="N-Build">
		<property name="buildType" value="N" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="fullBuild">
		</antcall>
	</target>
	<target name="N-Repeat">
		<property name="buildType" value="N" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="repeatBuild">
		</antcall>
	</target>
	<target name="N-Test">
		<property name="buildType" value="N" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="testBuild">
		</antcall>
	</target>
	<target name="N-Publish">
		<property name="buildType" value="N" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="publishBuild">
		</antcall>
	</target>
	<target name="N-Push">
		<property name="buildType" value="N" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="pushBuild">
		</antcall>
	</target>

	<target name="I-Build">
		<property name="buildType" value="I" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="fullBuild">
		</antcall>
	</target>
	
	<target name="I-Mntnc-Build">
		<property name="buildType" value="I" />
		<property name="maintenance" value="0_7_maintenance" />
		<property name="mapVersionTag" value="R0_7_maintenance" />
		<antcall target="fullBuild">
		</antcall>
	</target>

	<target name="I-Repeat">
		<property name="buildType" value="I" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="repeatBuild">
		</antcall>
	</target>
	<target name="I-Test">
		<property name="buildType" value="I" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="testBuild">
		</antcall>
	</target>
	<target name="I-Publish">
		<property name="buildType" value="I" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="publishBuild">
		</antcall>
	</target>
	<target name="I-Push">
		<property name="buildType" value="I" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="uploadBuild">
		</antcall>
	</target>


	<target name="S-Build">
		<property name="buildType" value="S" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="fullBuild">
		</antcall>
	</target>
	<target name="S-Repeat">
		<property name="buildType" value="S" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="repeatBuild">
		</antcall>
	</target>
	<target name="S-Test">
		<property name="buildType" value="S" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="testBuild">
		</antcall>
	</target>
	<target name="S-Publish">
		<property name="buildType" value="S" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="publishBuild">
		</antcall>
	</target>
	<target name="S-Push">
		<property name="buildType" value="S" />
		<property name="mapVersionTag" value="HEAD" />
		<antcall target="pushBuild">
		</antcall>
	</target>

	<target name="fullBuild" depends="clean">
		<antcall target="clean" />
		<ant antfile="checkout.xml" target="all" dir="." inheritall="false">
			<property name="codir" value="/home/build-home/build-node/checkout/wtp-${maintenance}${buildType}" />
			<property name="buildType" value="${buildType}" />
		</ant>

		<ant antfile="cruise.xml" target="all" dir="/home/build-home/build-node/checkout/wtp-${maintenance}${buildType}/releng.builder/scripts" inheritall="false">
			<!-- PUBLISH TO eclipse.org  -->

			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />

			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />

		</ant>
	</target>

	<target name="repeatBuild">
		<ant antfile="cruise.xml" target="all" dir="/home/build-home/build-node/checkout/wtp-${buildType}/releng.builder/scripts" inheritall="false">
			<!-- PUBLISH TO eclipse.org  -->
			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />


			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />

		</ant>
	</target>

	<target name="testBuild">
		<ant antfile="cruise.xml" target="test" dir="/home/build-home/build-node/checkout/wtp-${buildType}/releng.builder/scripts" inheritall="false">
			<!-- PUBLISH TO eclipse.org  -->
			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />

			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />

		</ant>
	</target>

	<target name="uploadBuild">

		<ant antfile="cruise.xml" target="justPush" dir="/home/build-home/build-node/checkout/wtp-${buildType}/releng.builder/scripts" inheritall="false">
			<!-- PUBLISH TO eclipse.org  -->
			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />



			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />

		</ant>
	</target>

	<target name="publishBuild">

		<ant antfile="cruise.xml" target="justPublish" dir="/home/build-home/build-node/checkout/wtp-${buildType}/releng.builder/scripts" inheritall="false">
			<!-- PUBLISH TO eclipse.org  -->
			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />

			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />
		</ant>
	</target>

	<target name="Driver">
		<ant antfile="checkout.xml" target="all" dir="." inheritall="false">
			<property name="codir" value="checkout/wtp-driver" />
			<property name="buildType" value="I" />
		</ant>
		<ant antfile="drivers.xml" target="all" dir="/home/build-home/build-node/checkout/wtp-driver/releng.builder/tools/cruise" inheritall="false">
		</ant>
	</target>
	
	<target name="docs">
		<property name="mapVersionTag" value="HEAD" />
		<property name="buildType" value="I" />
		
		<ant antfile="checkout.xml" target="all" dir="." inheritall="false">
			<property name="codir" value="checkout/wtp-docs" />
			<property name="buildType" value="docs" />
		</ant>
		<ant antfile="cruise.xml" target="buildDoc" dir="/home/build-home/build-node/checkout/wtp-docs/releng.builder/tools/cruise" inheritall="false">
			<property name="baseos" value="${baseos}" />
			<property name="basews" value="${basews}" />
			<property name="basearch" value="${basearch}" />
			<property name="build.home" value="${build.home}" />
			<property name="build.trial" value="${build.trial}" />

			<property name="mapVersionTag" value="${mapVersionTag}" />
			<property name="buildType" value="${buildType}" />
			<property name="ftpUser" value="${ftpUser}" />
			<property name="ftpPassword" value="${ftpPassword}" />
			<property name="ftpServer" value="${ftpServer}" />
			<property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />
		</ant>
	</target>


	<target name="clean" unless="noClean">
		<delete dir="${build.home}/build-current-${buildType}" failonerror="false" />
		<delete dir="${build.home}/test-current-${buildType}" failonerror="false" />
		<delete dir="/home/build-home/build-node/checkout/wtp-${buildType}/build/test-results" failonerror="false" />
		<delete dir="${build.home}/workspace" failonerror="false" />
	</target>

</project>