Building editor with Teamcity

Hi. I'm looking to build Unreal Engine 4 from source with Teamcity. Normally in Visual Studio we build it with "Development editor" build configuration. Is it possible to build UE4 from source with Teamcity, and if possible, how to do that?
0
1 comment

Hey, 

yes this is possible regardless of the actual CIS you are using. You can automate it via the UnrealAutomationTool (UAT) and BuildGraph, ie. running:

${GlobalVariables.absoluteProjectCheckoutDir}/UE4/Engine/Build/BatchFiles/RunUAT.bat BuildGraph -Script=Engine/Build/Graph/Examples/BuildEditorAndTools.xml -Target="Submit To Perforce for UGS" -set:EditorTarget=YourEditorProject -set:ArchiveStream=${GlobalVariables.ugsArchiveStream} -p4 -submit -buildmachine

This would build it and submit it to P4 for later use of UnrealGameSync (UGS). You can adapt the BuildGraph file or call a different -Target if you just want to compile it (should be "Copy To Staging Directory").

Without BuildGraph it should be something like:

${GlobalVariables.absoluteProjectCheckoutDir}/UE4/Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=relativePath/YourProject.uproject -noP4 -noclean -buildmachine -targetplatform=Win64 -config=Development -compile -build -disableUnity -skipcook -skipstage -skippak -CrashReporter -unattended -noclient -noserver -editor

Cheers,

Flo

 

 

1

Please sign in to leave a comment.