Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

jenkins setup

Baldur Gudbjornsson edited this page Nov 25, 2013 · 5 revisions

Use this cookbook: https://github.com/gildegoma/chef-android-sdk

{
  "java": {
    "install_flavor": "oracle",
     "oracle": {
       "accept_oracle_download_terms": true
     }
  },
 "android-sdk" : {
    "components" : [
      "platform-tools",
      "build-tools-19.0.0", 
      "android-19",
      "sysimg-19",
      "extra-android-support", 
      "extra-google-google_play_services", 
      "extra-google-m2repository", 
      "extra-android-m2repository"
    ]
  },
  "run_list" : [
    "recipe[android-sdk]"
  ]
}

Configuring jenkins job

the local workspace will need to have local.properties file that points to the android sdk
echo "sdk.dir=$ANDROID_HOME" > local.properties

# todo install some artifact plugin
Then in the gradle plugin we issue gradlew build task and set it to archive build/sdk/*

GitHub plugin

Jenkins Gradle plugin

Jenkins Artifactory Plugin

Jenkins Artifact Deployer Plug-in

Clone this wiki locally