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

253 lines
11 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="$(build_to_test)"
pub_folder="$(RS_ASSETS)\cruisecontrol_builds\codebuilder\$(build_name)"
prelog_script = "$(RS_TOOLSROOT)\script\util\cruisecontrol\codetester\codetester_pre_log_project_state.bat"
stats_file = "stats.xml"
stats_capture_dir = "$(build_dir)"
stats_capture_full_path = "$(stats_capture_dir)\$(stats_file)"
art_mods_file = "$(artifacts_dir)\modifications.xml"
msg_prefix = "[colourise=black]INFO_MSG:"
msg_timeout = "600"
exe = "game_psn_$(build_config)_snc.self"
exe_full_path="$(drive)\$(game)\build\$(buildbranch)\$(exe)"
skip = "30"
art_build_latest = "$(artifacts_dir)\builds\latest"
read_mods_path = "$(drive)\$(game)\assets\cruisecontrol_builds\codebuilder\$(build_name)"
aggregate_mods_filename = "aggregate_modifications.xml"
>
<exec executable="cmd.exe" buildArgs='/C echo $(codetest_wiki_msg)' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe" buildArgs='/C echo $(codetest_custom_cl_msg)' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe" buildArgs='/C echo $(codetest_cctray_msg)' buildTimeoutSeconds="$(msg_timeout)"/>
<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>
</exec>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** AGGREGATE MODIFICATIONS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C ruby $(ct_util) --aggregate --publish_folder=$(pub_folder)"
description="Aggregate modifications files since last build"
abortOnFail="false"
buildTimeoutSeconds="3600"/>
<modificationReader path="$(read_mods_path)" filename="$(aggregate_mods_filename)"/>
<modificationWriter pendingFilename = "modificationsPending.xml" logDir=".\buildlogs" postScript="$(prelog_script)" postArgs="$(projectname_dev)" />
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** PUBLISH MODIFICATIONS TO ARTIFACTS BUILDS DIR ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C xcopy $(art_mods_file) $(art_build_latest) /I /F /Y"
description="copying modifications.xml"
abortOnFail="false"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** CHECK_EXE ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C ruby $(ct_util) --check_exe --modifications_file=$(art_mods_file) --publish_folder=$(pub_folder) --exe=$(exe)"
description="Check if exe in modifications aggregated"
abortOnFail="true"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** CHECK_SKIP ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C ruby $(ct_util) --check_skip=$(skip) --publish_folder=$(pub_folder) --exe=$(exe)"
description="Check how far off the head we are with tests to conduct, and skip also if we didn't sync to any binaries"
abortOnFail="true"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** SYNC DATA ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C ruby $(ct_util) --publish_folder=$(pub_folder) --sync_data --build_shaders"
description="sync Data"
buildTimeoutSeconds="3600"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** COPY DIR ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C ruby $(ct_util) --publish_folder=$(pub_folder) --copy_dir=$(build_dir)"
description="Copy Dir"
buildTimeoutSeconds="3600"/>
<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) *** ERASE CORE DUMPS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C echo dummy > $(build_dir)\ps3core_dummy.log"
description="Generate dummy core dump"
abortOnFail="false"
buildTimeoutSeconds="-1"
successExitCodes="0,1,-1"/>
<exec executable="cmd.exe"
buildArgs="/C erase erase /A-R /Q /S $(build_dir)\ps3core*.*"
description="Erase core dumps"
abortOnFail="false"
buildTimeoutSeconds="-1"
successExitCodes="0,1,-1"/>
<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 XML $(stats_capture_full_path) ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="cmd.exe"
buildArgs="/C erase $(stats_capture_full_path)"
description="Erase last stats xml"
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="10000"/>
<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"
abortOnFail="false"/>
<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) *** CHECK STATS.XML EXISTS ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(scripts_dir)\smoketest\check_files.rb $(stats_capture_full_path)"
description="CHECK STATS.XML EXISTS"
abortOnFail="false"
buildTimeoutSeconds="1000"/>
<exec executable="cmd.exe" buildArgs='/C echo "$(msg_prefix) *** RUN POST SCRIPT ***"' buildTimeoutSeconds="$(msg_timeout)"/>
<exec executable="ruby"
buildArgs="$(post_script_args)"
description="Post script"
abortOnFail="false"
buildTimeoutSeconds="1000"/>
<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"
buildTimeoutSeconds="600"
abortOnFail="false"/>
<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>