Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Dehudsonification

...

In order to provide effective test coverage of the ever-increasing range of Android platform versions, screen resolutions and densities (amongst other device properties), automated and scalable build tools like Hudson Jenkins become highly advantageous.

...

A copy of the Android SDK must be available on each Hudson Jenkins node you wish to test on.

...

System configuration

On the Hudson Jenkins master, you can optionally specify the location where each build node can locate a copy of the Android SDK.

...

If you have build slaves running headless, it is recommended to take advantage of HudsonJenkins' s Xvnc Plugin.
With this plugin enabled, you can run any number of Android emulators in parallel on a headless slave. The Android Emulator plugin has been designed to ensure it always runs after an Xvnc server has been started.

...

As each of these axis names (i.e. "density", "locale", "os", "resolution") are exported by Hudson Jenkins as environment variables, you can make use of these when launching a new Android emulator:

...

For this purpose, you can use the "Combination Filter" feature, which tells Hudson Jenkins which combinations of the matrix axes are valid. In the case of screen densities and resolutions, a configuration like this should instruct Hudson Jenkins to only build for configurations which make sense:

...

For this purpose, each build with the Android Emulator plugin includes an ANDROID_AVD_DEVICE environment variable. This can be used from your HudsonJenkins, Ant or any other script as follows:
adb -s $ANDROID_AVD_DEVICE install -r my-app.apk

...

New AVDs cannot be generated and run if Hudson Jenkins is running as a Windows service, using the "Local System" account (see JENKINS-7355).

  • Workaround: configure the Hudson Jenkins service to "run as" a real user

...

  • Automatic locking of AVDs per-slave, so two jobs can't try (and fail) to use the same AVD at once
  • Option to set more hardware properties (camera size, keyboard present, RAM etc.)
  • New feature requests can be placed under the 'android-emulator' component of Hudson's Jenkins JIRA

Source code

The latest source code can be found on GitHub:
https://github.com/hudsonjenkinsci/android-emulator-plugin

Version history

Version 1.7 (Feb 09, 2011)

...