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

Emulator executable value is ignored for snapshot listing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • plugin version 2.14.1, jenkins 2.1, platform: linux x86-64

    Description

      Option Emulator executable is set to emulator64-x86. It is used correctly for starting avd but is ignored for snapshot listing as shown in log:

      $ /opt/android-sdk-update-manager/tools/emulator -snapshot-list -no-window -avd hudson_en-US_480_WVGA_android-23_x86_64
      sh: glxinfo: command not found
      /opt/android-sdk-update-manager/tools/qemu/linux-x86_64/qemu-system-x86_64: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
      [android] Starting Android emulator and creating initial snapshot
      [android] Erasing existing emulator data...
      $ /opt/android-sdk-update-manager/tools/emulator64-x86 -engine classic -ports 5774,5775 -report-console tcp:5823,max=60 -avd hudson_en-US_480_WVGA_android-23_x86_64 -no-snapshot-load -no-snapshot-save -wipe-data -no-window -no-audio -gpu off
      

      PS emulator64-x86 does not try to load libpulse.so.0, that's why this option is used.
      PPS maybe it is worth adding log message that snapshot listing has failed

      Attachments

        Activity

          koral Karol W⁠rotniak added a comment - Proposed fix: https://github.com/jenkinsci/android-emulator-plugin/pull/61

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommands.java
          src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommandsCurrentBase.java
          src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/7eca585b1ca2dc54cb9b751bc8cd3ac344ce0487
          Log:
          [FIXED JENKINS-34678] Use selected emulator executable when listing snapshots.

          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/EmulatorConfig.java src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommands.java src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommandsCurrentBase.java src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/7eca585b1ca2dc54cb9b751bc8cd3ac344ce0487 Log: [FIXED JENKINS-34678] Use selected emulator executable when listing snapshots.

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommands.java
          src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommandsCurrentBase.java
          src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/e28eefff406c1b6d13f7bf511464d54fe6eba4aa
          Log:
          Merge pull request #75 from jenkinsci/fix/JENKINS-34678

          [FIXED JENKINS-34678] Use selected emulator executable when listing snapshots

          Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/512f24f48ea3...e28eefff406c

          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/EmulatorConfig.java src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommands.java src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommandsCurrentBase.java src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/e28eefff406c1b6d13f7bf511464d54fe6eba4aa Log: Merge pull request #75 from jenkinsci/fix/ JENKINS-34678 [FIXED JENKINS-34678] Use selected emulator executable when listing snapshots Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/512f24f48ea3...e28eefff406c

          Version 3.0 of the plugin has been release, which solves this issue.

          orrc Christopher Orr added a comment - Version 3.0 of the plugin has been release, which solves this issue.

          People

            orrc Christopher Orr
            koral Karol W⁠rotniak
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: