Files
2025-09-29 00:52:08 +02:00

189 lines
8.3 KiB
XML
Executable File

<tasks xmlns:cb="urn:ccnet.config.builder">
<cb:scope logfile="$(log_dir)/$(level)_$(ip_log_file).log"
build_dir = "$(drive)\$(game)\build\$(buildbranch)"
build_name="psn_bankrelease"
pub_folder="$(RS_ASSETS)\cruisecontrol_builds\missiontester\$(build_name)\$(mission_name)"
stats_file = "metrics*.xml"
stats_capture_dir = "$(build_dir)"
stats_capture_full_path = "$(stats_capture_dir)\$(stats_file)"
msg_prefix = "[colourise=black]INFO_MSG:"
msg_timeout = "600"
exe = "game_psn_$(build_config)_snc.self"
exe_full_path="$(drive)\$(game)\build\$(buildbranch)\$(exe)"
art_build_latest = "$(artifacts_dir)\builds\latest"
>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** SYNC BUILD LABEL ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C $(RS_TOOLSROOT)\script\util\GET_STABLE_PS3.bat buildmachine"
description="Sync to the build label, by copying from the network."
buildTimeoutSeconds="7200"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** SYNC SCRIPTS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec>
<executable>ruby</executable>
<buildArgs>$(RS_TOOLSROOT)\lib\util\perforce\p4_sync.rb $(toolp4root)/...#head</buildArgs>
<abortOnFail>false</abortOnFail>
<description>Syncing tools</description>
<buildTimeoutSeconds>1200</buildTimeoutSeconds>
</exec>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** SYNC BUILDS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec>
<executable>ruby</executable>
<buildArgs>$(RS_TOOLSROOT)\lib\util\perforce\p4_sync.rb $(gamep4root)/assets/cruisecontrol_builds/missiontester/psn_bankrelease/...#head</buildArgs>
<abortOnFail>false</abortOnFail>
<description>Syncing exe</description>
<buildTimeoutSeconds>3600</buildTimeoutSeconds>
</exec>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** KILL SYSTRAY ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\kill_process.rb --process_name=systrayrfs.exe"
description="Killing SysTrayRfs"
abortOnFail="true"
buildTimeoutSeconds="600" />
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** PING DEVKIT ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\ping.rb --ip_address=$(ip) --retries=10"
description="Pinging devkit"
abortOnFail="true"
buildTimeoutSeconds="600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** START TARGETMANGER ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\kill_process.rb --process_name=ps3tm.exe"
description="Killing PS3 Target Manager"
abortOnFail="true"
buildTimeoutSeconds="3600" />
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** CONNECT TARGETMANGER TO DEVKIT ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ps3tm.exe"
buildArgs="-t $(ip) -c"
description="Connecting to devkit with Target manager"
abortOnFail="true"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** START SYSTRAY ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="$(RS_TOOLSBIN)\systrayrfs.exe"
buildArgs="-trusted"
description="Starting up SysTrayRfs"
abortOnFail="true"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** START RAG ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\run_process.rb --executable=%RS_TOOLSBIN%\rag\rag.exe"
description="Starting up RAG if required"
abortOnFail="true"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** MAKE LOG DIR ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C mkdir $(log_dir)"
description="Making log_dir"
abortOnFail="true"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** CHECK SELF EXISTS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C dir $(exe_full_path)"
description="Checking Self Exists"
abortOnFail="true"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** ERASE LAST LOG ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C echo _ > $(logfile)"
description="Erase last log"
abortOnFail="false"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** ERASE LAST $(stats_capture_full_path) ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C erase $(stats_capture_full_path)"
description="Erase last log to prevent publish of stale data"
abortOnFail="false"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** ERASE JPGS $(stats_capture_dir)/*.jpg ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C erase $(stats_capture_dir)\*.jpg"
description="Erase last jpgs to prevent publish of stale data"
abortOnFail="false"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** LAUNCH GAME ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="$(RS_TOOLSBIN)\Devkit\Devkit.exe"
buildArgs="-platform $(platform) -workingdir $(build_dir) -exe $(exe) -commandline &quot;-level=$(level) -logfile=$(logfile) $(standard_command_line) $(smoke_command_line)&quot; -duration $(duration) -deploydir xE:\$(game) -reboot 0 -ip $(ip)" baseDirectory="$(base_dir)"
description="Running Game On Devkit"
buildTimeoutSeconds="$(max_run_time)"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** PARSE LOG ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\smoketest\spit_error.rb --callstack --filename=$(logfile) $(errorsarenotfail)"
description="Parsing Logfile And Spitting Errors"
buildTimeoutSeconds="1000"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** ROBOCOPY CAPTURE DATA TO ARTIFACT BUILD DIR ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C robocopy $(stats_capture_dir) $(art_build_latest) $(stats_file)"
description="ROBOCOPY CAPTURE DATA TO ARTIFACT BUILD DIR"
abortOnFail="false"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** ROBOCOPY JPGS TO ARTIFACT BUILD DIR ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C robocopy $(stats_capture_dir) $(art_build_latest) *.jpg"
description="ROBOCOPY JPGS TO ARTIFACT BUILD DIR"
abortOnFail="false"
buildTimeoutSeconds="3600"/>
<cb:include href="$(buildpublisher_file)"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** KILL SYSTRAY ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
abortOnFail="false"
buildArgs="$(scripts_dir)\kill_process.rb --process_name=systrayrfs.exe"
description="Killing SysTrayRfs"
buildTimeoutSeconds="1000"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** DISCONNECT TARGET MANAGER ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ps3tm.exe"
buildArgs="-t $(ip) -d"
description="Disconnecting to devkit with Target manager"
abortOnFail="false"
buildTimeoutSeconds="-1"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** MOVE LAST LOG ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C move /Y $(logfile) $(logfile).lastread"
description="Move last log to prevent stale logs"
abortOnFail="false"
buildTimeoutSeconds="-1"/>
</cb:scope>
</tasks>