I did quite many fixes over the time to this plugin Sebastian Heil. You can find them at:
I'm not eager to create pull request on main repo, since plugin itself seems to be abandoned by creator.
Diff with original repo can be found at:
As for plugin configuration in jobs:
- use armeabi-v7a in target.
- use android SDK in format android-<sdk version>, i.e. 'android-19'
- use SDK card 256M +
Snapshots are not working. I had to abandon classic emulator engine due to bugs.
I'm also disabling animations on the emulator via custom script, can't publish it right now though.
Additionally, before running tests, execute following command:
adb shell setprop dalvik.vm.usejit false
This will prevent tests crashes caused by bugs in JIT implementation on emulator images.
In the end, I also execute post build script, just to be sure node state is settled after build competes:
pkill -9 -f "emulator" || true
pkill -9 -f "adb" || true
1. why kill emulator? sometimes emulator-crash service is preventing emulator from exiting gracefully
2. why kill adb? if adb doesn't stop, you can end up with multiple adb servers running at once. Because of that, scripts executed from shell script steps and ones executed by plugin can target different servers leading to unnecessary headaches (had many of them )
Hope this helps, cheers!