如何在 Jenkins 中显示来自 Android Lint 的结果,例如作为警告?我想浏览来自 Jenkins GUI 的警告,就像编译器警告和 PMD / Checkstyle 警告一样。
Jenkins 作业的输出是这样的:
[exec]
[exec] Scanning org.digitalcure.ccnf.app: ..........Incorrect detector reported disabled issue TooManyViews
[exec] Incorrect detector reported disabled issue TooManyViews
[exec] ...
[exec]
[exec] Scanning org.digitalcure.android.common: ...
[exec] res/values/strings.xml: Warning: The resource R.string.display_unit_abc appears to be unused [UnusedResources]
[exec] res/values/strings.xml: Warning: The resource R.string.edit_error_abc appears to be unused [UnusedResources]
[exec] Warning: Missing density variation folders in res: drawable-xhdpi [IconMissingDensityFolder]
[exec]
[exec] 0 errors, 3 warnings
Android Lint 也可以创建 XML 文件,但恐怕没有 Jenkins 插件能够解析该文件。还是我错过了什么?