How to fix "Test reports were found but none of them are new. Did tests run?" in Jenkins
Updating the last modified date can also be achieved in gradle itself is desired:
task jenkinsTest{ inputs.files test.outputs.files doLast{ def timestamp = System.currentTimeMillis() test.testResultsDir.eachFile { it.lastModified = timestamp } }}build.dependsOn(jenkinsTest)
As mentioned here: http://www.practicalgradle.org/blog/2011/06/incremental-tests-with-jenkins/