Details
-
Improvement
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
The android commands for executing against a device will fail if no device is specified and there are multiple devices running. This situation occurs if you have multiple jobs running on a single node with multiple executors. The ANDROID_SERIAL environment variable can be used to tell the android toolkit which device to use - which is the same information found in ANDROID_AVD_DEVICE.
Build steps will not have to work around setting the device if the ANDROID_SERIAL is populated with the same information from ANDROID_AVD_DEVICE.
Code changed in jenkins
User: Christopher Orr
Path:
src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
http://jenkins-ci.org/commit/android-emulator-plugin/330c0cc55fc0e5d9534e345e9c10b1129e6b191e
Log:
Export ANDROID_SERIAL environment variable, as adb can use this. Fixes
JENKINS-9692.This means scripts can now just call "adb" instead of "adb -s $ANDROID_AVD_DEVICE".
Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/ea12331...330c0cc