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

No slashes in widows AVD config.ini

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      jenkins 1.617, android emulator plugin 2.13.1
    • Similar Issues:

      Description

      Jenkins is running on linux server with a slave on windows 7 (running as service using java web start method).
      When running a job with "run an android emulator during build" ->"Run emulator with properties "
      That is when the AVD is created on every build , then on the windows slave in
      .android\avd\avd_namexxx\config.ini
      it creates the following in my case :
      *******
      hw.sdCard=yes
      hw.cpu.arch=arm
      skin.name=800x480
      skin.path=800x480
      avd.ini.encoding=UTF-8
      abi.type=armeabi-v7a
      hw.cpu.model=cortex-a8
      snapshot.present=true
      hw.ramSize=1024
      image.sysdir.1=system-imagesandroid-17defaultarmeabi-v7asdcard.size=150M
      tag.id=default
      tag.display=Default
      *******
      the property image.sysdir.1 is missing "\" characters and a line return character and therefore the emulator cant find the system-image file

      This issue only occurs when I add the custom hardware property in the job config (see line above hw.ramSize=1024)

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Looking at the code, that seems a bit odd.

          Could you please attach an example of a correct config.ini file? I don't have easy access to a Windows machine to test.

          Show
          orrc Christopher Orr added a comment - Looking at the code, that seems a bit odd. Could you please attach an example of a correct config.ini file? I don't have easy access to a Windows machine to test.
          Hide
          emmanueldufour emmanuel dufour added a comment -

          sorry for the delay, here is the proper config.ini (the last line, hw.ramSize=1000 was added by editing the file directly instead of using the plugin)
          ****************
          avd.ini.encoding=UTF-8
          abi.type=armeabi-v7a
          hw.cpu.arch=arm
          hw.cpu.model=cortex-a8
          hw.sdCard=yes
          image.sysdir.1=system-images\android-17\default\armeabi-v7a\
          sdcard.size=150M
          skin.name=800x480
          skin.path=800x480
          snapshot.present=true
          tag.display=Default
          tag.id=default
          hw.ramSize=1000

          Show
          emmanueldufour emmanuel dufour added a comment - sorry for the delay, here is the proper config.ini (the last line, hw.ramSize=1000 was added by editing the file directly instead of using the plugin) **************** avd.ini.encoding=UTF-8 abi.type=armeabi-v7a hw.cpu.arch=arm hw.cpu.model=cortex-a8 hw.sdCard=yes image.sysdir.1=system-images\android-17\default\armeabi-v7a\ sdcard.size=150M skin.name=800x480 skin.path=800x480 snapshot.present=true tag.display=Default tag.id=default hw.ramSize=1000
          Hide
          orrc Christopher Orr added a comment -

          Thanks! I'll try and take a look soon.

          Show
          orrc Christopher Orr added a comment - Thanks! I'll try and take a look soon.
          Hide
          arimil Arie Miller added a comment - - edited

          I'm having this issue on emulators created on a Windows 10 machine running locally.

          Here's an example of one of the emulators made:
          abi.type=x86
          image.sysdir.1=system-imagesandroid-19defaultx86sdcard.size=1024M
          hw.lcd.density=240
          skin.name=854x480
          tag.display=Default
          hw.sdCard=yes
          tag.id=default
          hw.cpu.arch=x86
          snapshot.present=true
          skin.path=854x480
          avd.ini.encoding=UTF-8

          Show
          arimil Arie Miller added a comment - - edited I'm having this issue on emulators created on a Windows 10 machine running locally. Here's an example of one of the emulators made: abi.type=x86 image.sysdir.1=system-imagesandroid-19defaultx86sdcard.size=1024M hw.lcd.density=240 skin.name=854x480 tag.display=Default hw.sdCard=yes tag.id=default hw.cpu.arch=x86 snapshot.present=true skin.path=854x480 avd.ini.encoding=UTF-8

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              emmanueldufour emmanuel dufour
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: