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

Set ANDROID_HOME environment variable to auto-installed Android SDK

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Android plugin sets the environment variable JENKINS_ANDROID_HOME to the auto-installed Android SDK path. It would be nice if it set ANDROID_HOME to that path as well so that builds "just work" - for example, such a change would make m2e-android and regular Android ant builds work without further configuration.

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          I originally created JENKINS_ANDROID_HOME rather than using ANDROID_HOME, as I didn't want to overwrite any environment variables that may already exist.

          While I don't believe regular Ant builds use the ANDROID_HOME variable, I can imagine that it would be helpful for other build tools if ANDROID_HOME is set to the installed/detected SDK directory.

          I'll add this to the next release.

          Show
          orrc Christopher Orr added a comment - I originally created JENKINS_ANDROID_HOME rather than using ANDROID_HOME, as I didn't want to overwrite any environment variables that may already exist. While I don't believe regular Ant builds use the ANDROID_HOME variable, I can imagine that it would be helpful for other build tools if ANDROID_HOME is set to the installed/detected SDK directory. I'll add this to the next release.
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_android-emulator #24
          [FIXED JENKINS-12325] Expose ANDROID_HOME variable for the SDK in use.

          Christopher Orr :
          Files :

          • src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_android-emulator #24 [FIXED JENKINS-12325] Expose ANDROID_HOME variable for the SDK in use. Christopher Orr : Files : src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              candrews candrews
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: