So recently we added a seperate buildstage to our pipeline which just runs the build for lights through the command line. A thing we noticed, compared to running from editor manually, is, that it does not pickup a connection to the swarm coordinator, and therefore keeps running on the light task alone. All other light builders have their swarm instances connected to the coordinator and the coordinator runs on the same system our commandline is run on.
We use gitlab, and therefore gitlab runner (which runs under a useraccount). Swarm coordinator has been started by a user manually on the desktop, and is already running when the pipeline is kicked off.
This is how the commandline looks like:
UE4Editor-CMD.exe
“%CI_PROJECT_DIR%\OurProject.uproject” -run=resavepackages
-buildlighting -mapsonly -projectonly -allowcommandletrendering
-Quality=Production
anyone has an idea?