gradle jacocoTestReport --info
以下错误导致jenkins构建失败。
> 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
1条答案
按热度按时间b1payxdu1#
请参阅文档:您必须将
org.gradle.caching=true
添加到文件gradle.properties
中。然后再次生成整个项目,以便缓存前一个任务的输出。