Gradle plugin for CI Android projects on Jenkins
MIT License
Gradle plugin for CI Android projects
-Xlint
option added to javac parameters, which causes all javac warnings to be included in output.jenkinsRelease
signing config added (using default debug keystore), obfuscated and optimized application can beconnectedMonkeyJenkinsTest
which performs installation and monkeying of all monkey testable variants##Usage ###Sample overview
plugins {
id 'pl.droidsonroids.jenkins' version '1.0.43'
}
apply plugin: 'com.android.application'
//or apply plugin: 'com.android.library'
//or apply plugin: 'com.android.test'
android {
buildTypes {
release {
signingConfig signingConfigs.jenkinsRelease //or another config
}
}
}
monkeyTest {
buildTypes 'release'
//and/or productFlavors ...
//and/or applicationVariants ...
}
###P roject types support This plugin supports both application, library and test projects. Signing config and monkey task are applicable only for application projects.
-Xlint
javac optionIf project uses javac
compiler (contains Java source code and jack is not enabled) then
-Xlint
option is added.
As a result all warnings are printed to console and can be visualised eg. using Jenkins plugins like
Warnings.
jenkinsRelease
signing config is available for use. It assumes that default debug keystore ($HOME/.android/debug.keystore
)
is usable and has unchanged default credentials.
Timeout is increased from default 5 s to 30 s.
connectedMonkeyJenkinsTest
taskTask is added to application projects. All build variants evaluated from monkeyTest
extension are monkeyed.
Task will fail if there is no monkeyable variants or at least one of them is not installable (eg. does not have signing
config).
monkeyTest
stanzaMonkeyable build types and/or product flavors (both of them by name eg. debug
or reference android.buildTypes.debug
)
and/or application variants (by name) can be specified here.