I have been trying to use the snapshot functionality in the Android plugin
but somehow it keeps creating a new snapshot every time.
$ /opt/android-sdk-linux/platform-tools/adb start-server
$ /opt/android-sdk-linux/tools/emulator -snapshot-list -no-window -avd
hudson_en-US_160_WVGA_android-19_x86
[android] Starting Android emulator and creating initial snapshot
[android] Erasing existing emulator data...
$ /opt/android-sdk-linux/tools/emulator -no-boot-anim -ports 54032,48039 -prop
persist.sys.language=en -prop persist.sys.country=US -avd
hudson_en-US_160_WVGA_android-19_x86 -no-snapshot-load -no-snapshot-save
-wipe-data -no-window -force-32bit
...
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:60122 shell log -p v
-t Jenkins "Creating snapshot..."
[android] Creating snapshot...
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:60122
[android] Emulator is ready for use (took 705 seconds)
...
I can confirm the snapshot exists:
$ /opt/android-sdk-linux/tools/emulator -snapshot-list -no-window -avd
hudson_en-US_160_WVGA_android-19_x86
Snapshots in file
'/home/jenkins/.android/avd/hudson_en-US_160_WVGA_android-19_x86.avd/snapshots.img':
ID TAG VM SIZE DATE VM CLOCK
1 jenkins 1.0G 2014-05-09 14:07:09 00:08:23.364
But if I restart the job again, the log will show the saw message:
$ /opt/android-sdk-linux/tools/emulator -snapshot-list -no-window -avd
hudson_en-US_160_WVGA_android-19_x86
[android] Starting Android emulator and creating initial snapshot
[android] Erasing existing emulator data...
I looked at the code EmulatorConfig.hasExistingSnapshot(), and saw the comment.
But I don't think it apply?
// Work around
// https://code.google.com/p/android/issues/detail?id=34233
// by always using EMULATOR_ARM to view the snapshot list.
How can I figure out what's wrong? (Note: Running OS CentOS 6.4 64bit Linux)
Thanks,
Charles
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.