Status: Closed (View Workflow)
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.
Great idea, thanks! I had missed that option in adb.
This will be in the next version of the plugin (which should be relatively soon).
Christopher Orr added a comment - Great idea, thanks! I had missed that option in adb. This will be in the next version of the plugin (which should be relatively soon).
Code changed in jenkins
User: Christopher Orr
Export ANDROID_SERIAL environment variable, as adb can use this. Fixes
This means scripts can now just call "adb" instead of "adb -s $ANDROID_AVD_DEVICE".