Files
gtav-src/tools_ng/etc/CruiseControl/assetbuilder/assetbuilder_publishers_buildpublisher.xml
2025-09-29 00:52:08 +02:00

72 lines
3.2 KiB
XML
Executable File

<cb:scope xmlns:cb="urn:ccnet.config.builder">
<!-- copy freshly built log files to a temp folder for use by build publisher -->
<!-- create artifact temp dir -->
<exec executable="cmd.exe"
buildArgs="/C mkdir $(artifacts_dir)\temp>>ignore.log 2&gt;&amp;1"
description="making artifacts dir"
abortOnFail="false"
successExitCodes= "0,1" />
<exec executable="cmd.exe"
buildArgs="/C move $(drive)\$(game)\tools\tmp\xge\$(game)\$(buildbranch)\convert\*cruisecontrol*.* $(artifacts_dir)\temp\>>ignore.log 2&gt;&amp;1"
description="copying ragebuilder xge log files to temp folder"
abortOnFail="true"
successExitCodes="0,1"/>
<exec executable="cmd.exe"
buildArgs="/C move $(drive)\$(game)\tools\tmp\xge\$(game)\$(buildbranch)\convert\*.* $(artifacts_dir)\temp\>>ignore.log 2&gt;&amp;1"
description="copying ragebuilder xge monitor files and packets to temp folder"
abortOnFail="true"
successExitCodes="0,1"/>
<exec executable="cmd.exe"
buildArgs="/C move $(drive)\$(game)\tools\logs\*cruisecontrol*.* $(artifacts_dir)\temp\>>ignore.log 2&gt;&amp;1"
description="copying main log files to temp folder"
abortOnFail="true"
successExitCodes="0,1"/>
<!-- publish the files we just copied a second ago, we can only publish a whole folder hence the copy earlier -->
<buildpublisher>
<sourceDir>$(artifacts_dir)\temp</sourceDir>
<publishDir>$(artifacts_dir)\logfiles</publishDir>
<useLabelSubDirectory>true</useLabelSubDirectory>
<!-- <cleanUpMethod>DeleteBuildsOlderThanXDays</cleanUpMethod> -->
<!-- <cleanUpValue>500</cleanUpValue> -->
<alwaysPublish>true</alwaysPublish>
</buildpublisher>
<!-- erase temp dir -->
<exec executable="cmd.exe"
buildArgs="/C erase /Q /F $(artifacts_dir)\temp\*.*>>ignore.log 2&gt;&amp;1"
description="moving ragebuilder xge log files so it wont be ever used again"
abortOnFail="true"/>
<!-- erase log files -->
<!-- files remain open so can't be deleted too easily...
<exec executable="cmd.exe"
buildArgs="/C erase /Q /F $(drive)\$(game)\tools\tmp\xge\$(game)\$(buildbranch)\convert\*.log>>ignore.log 2&gt;&amp;1"
description="erasing ragebuilder xge log files so it wont be ever used again"
abortOnFail="true"/>
<exec executable="cmd.exe"
buildArgs="/C erase /Q /F $(drive)\$(game)\tools\tmp\xge\$(game)\$(buildbranch)\convert\*.ib_mon>>ignore.log 2&gt;&amp;1"
description="erasing ragebuilder xge monitor files so it wont be ever used again"
abortOnFail="true"/>
<exec executable="cmd.exe"
buildArgs="/C erase /Q /F $(drive)\$(game)\tools\logs\assetbuilder*.log>>ignore.log 2&gt;&amp;1"
description="erasing other log files so it wont be ever used again"
abortOnFail="true"/>
-->
<!-- run a cleanup script to only retain the last x builds -->
<!-- <exec executable="cmd.exe"
buildArgs="/C $(scripts_dir)\CruiseControl\cleanup_folders.rb $(artifacts_dir)\logfiles\ 500"
description="cleaning up old logfile folders"
abortOnFail="true"/>
-->
</cb:scope>