{"action":"created","issue":{"url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/13","repository_url":"https://api.github.com/repos/aerogear/digger-jenkins","labels_url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/13/comments","events_url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/13/events","html_url":"https://github.com/aerogear/digger-jenkins/pull/13","id":193361536,"number":13,"title":"Update to allow for android-sdk-install (via jenkins job)","user":{"login":"luigizuccarelli","id":12412882,"avatar_url":"https://avatars.githubusercontent.com/u/12412882?v=3","gravatar_id":"","url":"https://api.github.com/users/luigizuccarelli","html_url":"https://github.com/luigizuccarelli","followers_url":"https://api.github.com/users/luigizuccarelli/followers","following_url":"https://api.github.com/users/luigizuccarelli/following{/other_user}","gists_url":"https://api.github.com/users/luigizuccarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/luigizuccarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigizuccarelli/subscriptions","organizations_url":"https://api.github.com/users/luigizuccarelli/orgs","repos_url":"https://api.github.com/users/luigizuccarelli/repos","events_url":"https://api.github.com/users/luigizuccarelli/events{/privacy}","received_events_url":"https://api.github.com/users/luigizuccarelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-04T16:57:46Z","updated_at":"2016-12-05T14:12:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aerogear/digger-jenkins/pulls/13","html_url":"https://github.com/aerogear/digger-jenkins/pull/13","diff_url":"https://github.com/aerogear/digger-jenkins/pull/13.diff","patch_url":"https://github.com/aerogear/digger-jenkins/pull/13.patch"},"body":"## Motivation:\r\nThe current android slave docker container has the android sdk 'baked' into the image\r\nTo avoid any legal problems with the license agreement it would be better to exclude the install and setup of the sdk in a container\r\n\r\n##  Solution:\r\nThe best solution (and easiest - after days of trying plugins/master-slave configurations with external directory mounts etc) was found to be :-\r\n\r\n  - Create a simple freestyle jenkins job\r\n  - Copy the script (included in this repo jenkinsfiles/install-android-sdk.sh) into the job execute shell field\r\n  - Add a Global variable GRADLE_HOME that points to the gradle wrapper directory\r\n  - Create the android slave build pipeline with the script example (jenkinsfiles/new-android.groovy)\r\n  - The install android job needs to be executed once only\r\n\r\nSimple changes to the current dockerfile were necessary (set the JAVA_HOME env for gradle and include wget for the install script)\r\n\r\nResult:\r\nThe slave relies on the GRADLE_HOME setting and calls the gradlew script.\r\nThis has been tested locally.\r\n\r\nJIRA:\r\nrefer to AGDIGGER-43 for details and logs"},"comment":{"url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/comments/264863619","html_url":"https://github.com/aerogear/digger-jenkins/pull/13#issuecomment-264863619","issue_url":"https://api.github.com/repos/aerogear/digger-jenkins/issues/13","id":264863619,"user":{"login":"wtrocki","id":981838,"avatar_url":"https://avatars.githubusercontent.com/u/981838?v=3","gravatar_id":"","url":"https://api.github.com/users/wtrocki","html_url":"https://github.com/wtrocki","followers_url":"https://api.github.com/users/wtrocki/followers","following_url":"https://api.github.com/users/wtrocki/following{/other_user}","gists_url":"https://api.github.com/users/wtrocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wtrocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtrocki/subscriptions","organizations_url":"https://api.github.com/users/wtrocki/orgs","repos_url":"https://api.github.com/users/wtrocki/repos","events_url":"https://api.github.com/users/wtrocki/events{/privacy}","received_events_url":"https://api.github.com/users/wtrocki/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T14:12:45Z","updated_at":"2016-12-05T14:12:45Z","body":"I mean that we just need to mount volume into the slave container. "}}
{"actor":{"display_login":"wtrocki"}}