Can't get Coverity Scan to work (Java/Kotlin/Gradle 3.3 on Windows and Travis)

折月煮酒 提交于 2019-12-05 05:00:54

Issue 1 - "The system cannot execute the specified program."

This issue arose because a Windows 32-bit kit was used to attempt to capture a Windows 64-bit build. The attempt to attach a 32-bit process to a 64-bit one causes failure to execute.

  • The solution here is to match the bitness of Coverity binaries with the bitness of your platform (use a Windows 64-bit kit).

Issue 2 - Failure to capture TravisCI build on Linux

This issue appears to be due to an incompatibility between Coverity's Java Capture and the ErrorProne plugin, as evidenced by messages such as this one in the build log:

WARNING: Failed load class file java/io/FileNotFoundException.class as a resource using the class loader net.ltgt.gradle.errorprone.ErrorProneCompiler$SelfFirstClassLoader@36358417
  • The solution here is to disable that plugin for the Coverity build.

Varia

  • When debugging the issue, the known issue of the Gradle daemon interfering with Coverity was discussed, but was ultimately not relevant to the issue.
  • The noted issues with the "prepend" command are user error; the prepend command is not a separate command to run, it's there for utility purposes.
SCAN Admin

A few things to note, because reading our documentation is crucial to using our tool successfully:

  1. Kotlin is not supported.
  2. Using the appropriate binaries for your platform is required (so using win32 binaries on a 64 bit platform will generally not work).
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!