<target name="PostBuildDeliver"> <exec executable="cmd"> <arg value="/c"/> <arg value="C:\PathToBuildToolKit\jazz\buildsystem\buildengine\eclipse\jbe.exe -userId $Build_User -pass $Build_pass -repository https://<host>:9443/ccm -buildResultUUID $buildResultUUID -engineId $engineId -participants com.ibm.team.build.autoDeliver -noComplete -verbose"/> </exec> </target>Use case Example: if you are using the sample provided in Integrating with Jazz SCM and Builds from Hudson and Jenkins you need to modify buildOnHudsonJenkinsAdvanced.xml to invoke the participant autoDeliver
<!-- Redirecting the output of the executable in the jbe_output2.txt --> <exec executable="${jbePath}/jbe.exe" output="jbe_output2.txt"> <arg value="-repository"/> <arg value="${repositoryAddress}"/> <arg value="-userId"/> <arg value="${userId}"/> <arg value="-passwordFile"/> <arg value="${passwordFile}"/> <arg value="-buildResultUUID"/> <arg value="${buildResultID}"/> <arg value="-engineId"/> <arg value="${buildEngineId}"/> <arg value="-participants"/> <arg value="com.ibm.team.build.autoDeliver"/> <!-- Run only the Post Deliver phase --> <arg value="-noComplete"/> <!-- Don't complete the build until the main build script has run --> <arg value="-verbose"/> <arg value="-data"/> <arg value="/tmp/jbe-workspace-${buildEngineId}"/> <!-- location for JBE's Eclipse workspace (not the loaded SCM workspace) --> </exec>Note: This participant does not get invoked when you define the Post Build activities in the Build definition. This needs to be invoked in a target for Post Build to work in RTC.