Running the editor from Jenkins

I’ve been working to get Unity to launch from the command line (terminal) on my Ubuntu server. While I can get the Hub to launch, and open the project from there, that is not a solution that works when running automated builds from Jenkins.

It probably doesn’t help that I’m a complete noob when it comes to Linux in general :stuck_out_tongue:

So, my question:

  • Where can I, usually, find the ‘executable’ for specific Unity Editor Versions? (and if you’re feeling very charitable: How would I launch it using the terminal?)
  • ~/Unity/Hub/Editor/2019.3.0b10/Editor/Unity Does not work, as it only launches the hub with a unity splash screen in the background.

Thank you in advance!

you can launch it via the commandline but you need to pass in -batchmode and optionally -nographics in order for it to work you can also pass in the project path to open a specific project. Unity - Manual: Command-line arguments

1 Like