Jenkins Lint Plugin not picking up results

狂风中的少年 提交于 2019-12-10 18:45:12

问题


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 .

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.

I already tried configuring different file names and locations for the result xml file but that did not seem to help.

What could have gone wrong?


回答1:


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"



来源:https://stackoverflow.com/questions/12716150/jenkins-lint-plugin-not-picking-up-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!