Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9692

Add ANDROID_SERIAL to list of environment variables added

    XMLWordPrintable

    Details

    • Similar Issues:

      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.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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
          Hide
          orrc 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).

          Show
          orrc 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).
          Hide
          orrc Christopher Orr added a comment -

          Version 1.15 has now been released, which includes this update.

          Show
          orrc Christopher Orr added a comment - Version 1.15 has now been released, which includes this update.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              hokatichen Mike Elkin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: