Reputation: 9063
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?
Upvotes: 3
Views: 1327
Reputation: 64012
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"
Upvotes: 1