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

Unquoted system image names break sh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Plugin Version 3.1.1
      macOS 10.15.6
    • 3.1.2

      Old

      /Users/builduser/Library/Android/sdk/tools/android create avd -f -a -c 512M -s 1080x1920 -n hudson_en-US_420_1080x1920_Google_Inc._Google_APIs_29_x86 -t "Google Inc.:Google APIs:29" --abi x86

      New

      **/Volumes/Code/Jenkins/tools/android-sdk/tools/bin/avdmanager create avd -f -c 512M -d 17 -n hudson_en-US_420_1080x1920_Google_Inc._Google_APIs_29_x86_17 -k system-images;android-29;google_apis;x86 --tag google_apis

      The CLI changed a little bit in the newer scheme, but as far as I can tell the semi colons in the system image names still throw the shell for a loop. Running the second command fails with

      Error: Package path is not valid. Valid system image paths are:ository...
      system-images;android-29;google_apis;x86
      system-images;android-26;google_apis;x86
      null

      Running the command with quotes around the system image name works as expected.

            nfalco Nikolas Falco
            jzbrooks Justin Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: