Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Android Emulator plugin 1.14
Jenkins 1.400
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.
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.