Allow unstable Android Gradle builds on Jenkins Allow unstable Android Gradle builds on Jenkins jenkins jenkins

Allow unstable Android Gradle builds on Jenkins


After our conversation I believe that:

  • the problem is gradle configuration only and not jenkins related. Get it to work in gradle.
  • in gradle I believe (though I am not an expert) you should get the connectedInstrumentTest to ignore failures, but your attempt to use the following failed

    connectedInstrumentTest {    ignoreFailures = true}
  • maybe the solution is to wrap this config node like this:

    project.gradle.taskGraph.whenReady {  connectedInstrumentTest {    ignoreFailures = true  }}

https://github.com/stanfy/hotandroid/blob/master/part0/build.gradle