詹金斯皮棉插件不拾取结果 [英] Jenkins Lint Plugin not picking up results

查看:182
本文介绍了詹金斯皮棉插件不拾取结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了的Andr​​oid皮棉插件插件在詹金斯和在我的Andr​​oid项目生成(这是与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建,你需要检查发布的Andr​​oid林特结果的步骤添加为生成后行动

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆