詹金斯皮棉插件不拾取结果 [英] Jenkins Lint Plugin not picking up results
问题描述
我安装了的Android皮棉插件插件在詹金斯和在我的Android项目生成(这是与Maven构建)来激活它。然后我说执行shell作为后生成行动命令
I installed the Android Lint Plugin plugin in jenkins and activated it in my Android project build (which is build with maven). Then I added "execute shell" as post build action with the command
os_opts="-Djava.awt.headless=true" lint --xml lint-results.xml .
如所描述。该绒results.xml文件在工作区根目录文件夹中创建,它包含的结果。但不知何故,该插件不拿起结果,并在任何地方显示出来。
as described. The lint-results.xml file is created in the root workspace folder and it contains results. But somehow the plugin does not pick up the results and display them anywhere.
我已经尝试过的结果xml文件配置不同的文件名和位置,但似乎并没有帮助。
I already tried configuring different file names and locations for the result xml file but that did not seem to help.
什么可能出了错?
推荐答案
由于绒results.xml文件与皮棉
或产生的gradle建
,你需要检查发布的Android林特结果的步骤添加为生成后行动
Given that lint-results.xml files are generated with lint
or gradle build
, you need to check that "Publish Android Lint results" step is added as "Post-build Actions"
这篇关于詹金斯皮棉插件不拾取结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!