Hi folks!
I have a jenkins setup that currently runs some playmode tests in batch mode. The (jenkins pipeline) command looks like this:
bat "\"${UNITY_PATH}\" -batchmode -projectPath . -runTests -testResults playmodetests.xml -testPlatform playmode -testCategory \"BuildServer\" -logFile"
This works for the tests I’ve tagged with “BuildServer” - those that don’t depend too much on animation or physics. -batchmode
messes too much with the other tests for them to run.
To fix this limitation, I’d like to run unity outside of batch mode. So, I provisioned a nice GPU-enabled ec2 windows machine, and tried running it. This command in dos when remoting into the server works:
start /wait "" "C:\Program Files\Unity\Hub\Editor\2019.4.5f1\Editor\unity.exe" -projectPath . -runTests -testResults playmodetests.xml -testPlatform playmode -testCategory "BuildServer" -logFile playmodenobatch.txt
…unity opens, the playmode tests run, and it quits.
However when I try the original jenkins command without -batchmode, the build server just hangs. I can see the process running, but there’s no log output and it never seems to complete.
Is there something weird about running via jenkins? Is there something extra I have to do to force a visual app to launch when jenkins is remoting in like this, and there’s not necessarily a remote desktop attached? Thanks!