Allow unstable Android Gradle builds on Jenkins
Hi I have set up my Android project on Jenkins to provide CI. Its working
well, running tests on a connected Android handset. The tests run on the
Android Test Framework which extends jUnit3.
Unfortunately, the build is marked as a failure if there are any test
failures. I'd like to be able to improve this in two ways:
Allowing unstable builds
Being able to mark builds as failures
For item 1 I tried adding this to the project build.gradle:
connectedCheck {
ignoreFailures = true
}
But it has no effect. Looking at the build log, I realised the actual test
task is called connectedInstrumentTest, but this task is not found:
connectedInstrumentTest {
ignoreFailures = true
}
causes:
Could not find method connectedInstrumentTest() for arguments
[build_4ldpah0qgf0ukktofecsq41r98$_run_closure3@9cd826] on project
':Playtime'.
That am I missing?
Thanks
No comments:
Post a Comment