I am trying to run automated Unity (Version 4.5.5f1) builds through a Jenkins server. So far, I’ve been able to specify the log output location of the build using the following command:
This puts the log file into the build directory. However, I want to have the Unity build log show up as part of the Jenkins build log for easier troubleshooting. The Jenkins build log is created from the console output of the task.
Simply add the parameter -logfile to the console command (without appending an actual log file name). This will make Unity print all log output to stdout. This article explains it: Loading... (it’s actually about TeamCity but the same principles apply for Jenkins as well).
In more recent versions of Unity (2020.2+) use the logfile command with a hyphen as the output location -logfile - to capture the build logs in Jenkins