jenkins gradle jacocoTestReport任务失败

7vux5j2d  于 2023-05-28  发布在  Jenkins
关注(0)|答案(1)|浏览(199)

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
b1payxdu

b1payxdu1#

请参阅文档:您必须将org.gradle.caching=true添加到文件gradle.properties中。然后再次生成整个项目,以便缓存前一个任务的输出。

相关问题