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

AVD should be in workspace instead of system-global

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This relates to JENKINS-11083: It's another solution to the underlying issue.

      It'd be nice if AVDs could be generated in the workspace, so that there was no conflict when two jobs wanted to use the same configuration. In addition, this would allow "concurrent builds" on the same slave for Android Emulator-dependent jobs.

        Attachments

          Issue Links

            Activity

            Hide
            jorgenpt Jørgen Tjernø added a comment -

            I ended up making this configurable on a global level, that made more sense to me. Feel free to change it to per-job (maybe later?) if you think that's better - but I'd rather not have to go and enable it on all our jobs.

            Pull request: https://github.com/jenkinsci/android-emulator-plugin/pull/13

            Show
            jorgenpt Jørgen Tjernø added a comment - I ended up making this configurable on a global level, that made more sense to me. Feel free to change it to per-job (maybe later?) if you think that's better - but I'd rather not have to go and enable it on all our jobs. Pull request: https://github.com/jenkinsci/android-emulator-plugin/pull/13
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jørgen P. Tjernø
            Path:
            .gitignore
            src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
            src/main/java/hudson/plugins/android_emulator/AndroidEmulatorContext.java
            src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
            src/main/java/hudson/plugins/android_emulator/SdkInstaller.java
            src/main/java/hudson/plugins/android_emulator/TaskDispatcher.java
            src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java
            src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java
            src/main/java/hudson/plugins/android_emulator/util/Utils.java
            src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly
            src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/global.jelly
            src/main/webapp/help-keepInWorkspace.html
            http://jenkins-ci.org/commit/android-emulator-plugin/430606da6fef941288b5f427a696a5b8dcdb7c13
            Log:
            JENKINS-11973 Option for emulators in $WORKSPACE

            This adds a global option that essentially does
            ANDROID_SDK_HOME=$WORKSPACE, causing emulators to be put into
            $WORKSPACE/.android.

            This allows you to run concurrent jobs on the same slave, and to run the
            same emulator config from two different jobs on the same slave. It also
            makes the emulators more isolated and allows you to clean-slate the
            emulators by wiping out the workspace.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jørgen P. Tjernø Path: .gitignore src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java src/main/java/hudson/plugins/android_emulator/AndroidEmulatorContext.java src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java src/main/java/hudson/plugins/android_emulator/SdkInstaller.java src/main/java/hudson/plugins/android_emulator/TaskDispatcher.java src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java src/main/java/hudson/plugins/android_emulator/util/Utils.java src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/global.jelly src/main/webapp/help-keepInWorkspace.html http://jenkins-ci.org/commit/android-emulator-plugin/430606da6fef941288b5f427a696a5b8dcdb7c13 Log: JENKINS-11973 Option for emulators in $WORKSPACE This adds a global option that essentially does ANDROID_SDK_HOME=$WORKSPACE, causing emulators to be put into $WORKSPACE/.android. This allows you to run concurrent jobs on the same slave, and to run the same emulator config from two different jobs on the same slave. It also makes the emulators more isolated and allows you to clean-slate the emulators by wiping out the workspace.
            Hide
            orrc Christopher Orr added a comment -

            Arguably this is a pretty niche feature anyway (i.e. just for you ), so global config is fine

            Show
            orrc Christopher Orr added a comment - Arguably this is a pretty niche feature anyway (i.e. just for you ), so global config is fine
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Christopher Orr
            Path:
            .gitignore
            src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
            src/main/java/hudson/plugins/android_emulator/AndroidEmulatorContext.java
            src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
            src/main/java/hudson/plugins/android_emulator/SdkInstaller.java
            src/main/java/hudson/plugins/android_emulator/TaskDispatcher.java
            src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java
            src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java
            src/main/java/hudson/plugins/android_emulator/util/Utils.java
            src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly
            src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/global.jelly
            src/main/webapp/help-keepInWorkspace.html
            http://jenkins-ci.org/commit/android-emulator-plugin/acae1f59bd739151383b21ad1cf867507c206cef
            Log:
            Merge pull request #13 from jorgenpt/workspace-local-android-images

            [FIXED JENKINS-11973] Allow emulators to be stored in $WORKSPACE.

            Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/770bf157ef44...acae1f59bd73

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: .gitignore src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java src/main/java/hudson/plugins/android_emulator/AndroidEmulatorContext.java src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java src/main/java/hudson/plugins/android_emulator/SdkInstaller.java src/main/java/hudson/plugins/android_emulator/TaskDispatcher.java src/main/java/hudson/plugins/android_emulator/builder/AbstractBuilder.java src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java src/main/java/hudson/plugins/android_emulator/util/Utils.java src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/global.jelly src/main/webapp/help-keepInWorkspace.html http://jenkins-ci.org/commit/android-emulator-plugin/acae1f59bd739151383b21ad1cf867507c206cef Log: Merge pull request #13 from jorgenpt/workspace-local-android-images [FIXED JENKINS-11973] Allow emulators to be stored in $WORKSPACE. Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/770bf157ef44...acae1f59bd73
            Hide
            orrc Christopher Orr added a comment -

            Version 2.3 of the plugin has been released with this feature!

            Show
            orrc Christopher Orr added a comment - Version 2.3 of the plugin has been released with this feature!

              People

              • Assignee:
                orrc Christopher Orr
                Reporter:
                jorgenpt Jørgen Tjernø
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: