in agent/src/main/kotlin/com/jetbrains/teamcity/plugins/unrealengine/agent/buildgraph/DistributedExecutor.kt [27:47]
suspend fun execute(command: BuildGraphCommand): List<UnrealEngineCommandExecution> {
val settings =
either {
settingsCreator.from(context.runnerParameters)
}.getOrElse {
raise("Unable to get distributed BuildGraph build settings. Error: ${it.message}")
}
return when (settings) {
is DistributedBuildSettings.SetupBuildSettings -> {
listOf(
setupCommand(settings, command),
)
}
is DistributedBuildSettings.RegularBuildSettings -> {
listOf(
executeCommand(settings, command),
)
}
}
}