- Home /
Jenkin's build script stalls building Android version.
Hi All,
I've been looking into automating our build process and started working with Jenkins to help us do this.
The issue I have now is that Jenkin's seems to stall when building an Android version of our game, giving me no details as to why it's stalled.
It stalls on this line.
string lError = BuildPipeline.BuildPlayer(lScene, lFilePath, BuildTarget.Android, BuildOptions.None);
Things I've tried...
Run the build script in Unity, it works.
Run the build script via the command prompt, it works.
Run the build script via a batch script, it works.
Run the build script in Jenkin's but build a webplayer version, it works.
but run it through Jenkin's to build an Android version and it stalls and I have no idea why?
Has anyone else experienced a similar issue?
At first I was using the Unity3d plugin and calling the script via the below command line.
-batchmode -nographics -quit -executeMethod ExternalBuildProcess.BuildAndroid -projectPath "C:\Jenkins\{GAME_NAME}"
When that stalled I tried setting Jenkin's up to run a simple batch script. The batch script used is below.
cd "C:/Program Files (x86)/Unity/Editor/"
set "logPath=C:\Jenkins\Logs\LogFile%DATE:/=-%@%TIME::=-%.txt"
start /wait Unity.exe -batchmode -nographics -quit -executeMethod ExternalBuildProcess.BuildAndroid -projectPath "C:\Jenkins\{GAME_NAME}" -logFile %logPath%
The log files don't seem to differ except that it stops outputting once it tries to build the apk.
Any help would be appreciated.
Thanks, Rick.
I am seeing the exact same thing. It stalls right after the warning about using a compressed texture as an icon, and all of the relevant processes are using 0% CPU. It just spins forever with no additional log output until I kill the Unity process. $$anonymous$$y command line is the same as yours except I don't use -nographics because that has a bug which disables linear color space. PC standalone builds fine.
Unity 0.5.2p4