Reputation: 1263
gradle jacocoTestReport --info
The following error is causing jenkins build failure.
> Task :jacocoTestReport FAILED
Caching disabled for task ':jacocoTestReport' because:
Build cache is disabled
Task ':jacocoTestReport' is not up-to-date because:
Task has failed previously.
[ant:jacocoReport] Loading execution data file C:\Users\*\build\jacoco\test.exec
:jacocoTestReport (Thread[Execution worker for ':',5,main]) completed. Took 0.702 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jacocoTestReport'.
> Error while creating report
Upvotes: 2
Views: 5598
Reputation: 76679
See the documentation: You'll have to add org.gradle.caching=true
into file gradle.properties
.
And then build the whole project again, so that the previous task's output would have been cached.
Upvotes: 2