I start unity [2021.2.6f1] android build in jenkins command line with arguments:
%UNITY_DIR% -quit -batchmode -nographics -projectPath %PROJECT_PATH% -executeMethod %EXECUTION_METHOD% -buildTarget android -logFile -
After build finishing unity keep endless hanging with logs:
AcceleratorClientConnectionCallback - disconnected - :0.
Cleanup mono
While hanging I noticed “OpenJDK platform binary” process in WIndows task manager. After killing process from task manager Unity finally quits with logs
debugger-agent: Unable to listen on 3900
[usbmuxd] Stop listen thread
[usbmuxd] Listen thread exiting
Exiting batchmode successfully now!
Exiting without the bug reporter. Application will terminate with return code 0
Maybe someone now how to fix that hanging on “cleanup mono”?
WIth Unity 2021.1.* everything works ok, the problem is only with 2021.2