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

Cannot (un)install APKs with spaces in the filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Android Emulator plugin 1.14
      Jenkins 1.400
    • Similar Issues:

      Description

      The "Install Android package" task doesn't take kindly to filenames with spaces in them:

      Filename: My App-debug.apk

      [android] Installing APK file 'My App-debug.apk'
      [1.6] $ /android-sdk/platform-tools/adb -s emulator-46162 install -r My App-debug.apk
      can't find 'App-debug.apk' to install

      Filename: My\ App-debug.apk

      [android] Could not find APK file '/home/hudson/workspace/.../1.6/My\ App-debug.apk' to be installed

      Filename: "My App-debug.apk"

      [android] Could not find APK file '/home/hudson/workspace/.../1.6/"My App-debug.apk"' to be installed

      This should work without having to quote or escape anything.

        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/InstallBuilder.java
          src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java
          http://jenkins-ci.org/commit/android-emulator-plugin/973b3704757c38fd528d9106018a5aa46b600807
          Log:
          Quote APK filename when passing to aapt or adb. Fixes JENKINS-9700.

          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/InstallBuilder.java src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java http://jenkins-ci.org/commit/android-emulator-plugin/973b3704757c38fd528d9106018a5aa46b600807 Log: Quote APK filename when passing to aapt or adb. Fixes JENKINS-9700 .
          Hide
          orrc Christopher Orr added a comment -

          Fixed and tested on Mac and Windows.

          Will be in the next release.

          Show
          orrc Christopher Orr added a comment - Fixed and tested on Mac and Windows. Will be in the next release.
          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:
              orrc Christopher Orr
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: