Android Lint and maven builds

124 views
Skip to first unread message

Patrik Åkerfeldt

unread,
Jul 12, 2012, 3:15:27 AM7/12/12
to jenkins...@googlegroups.com
For some reason the android-lint report is never created for my android maven builds. In the pre steps I generate the lint-results.xml file, and I have verified that it exists and contains right information. Then, the build step defines the pom and the maven target (which currently is clean cobertura:cobertura deploy but I've tried other goals like just clean compile). Then in post step I choose to publish the lint result, specifying the lint-results.xml file. The build is successful but there is no references to lint reports in the console.

If I, instead, create a regular build (not maven), checkout the code and in the build step run the command to create the lint result, the lint report is published. So to me it seems to be some issue with the android-lint plugin together with maven builds. Can someone confirm this?

Thanks,

Christopher Orr

unread,
Aug 7, 2012, 7:52:14 PM8/7/12
to jenkins...@googlegroups.com
On 07/12/2012 08:15 AM, Patrik Åkerfeldt wrote:
> For some reason the android-lint report is never created for my android
> maven builds. In the pre steps I generate the lint-results.xml file, and
> I have verified that it exists and contains right information. Then, the
> build step defines the pom and the maven target (which currently is
> clean cobertura:cobertura deploy but I've tried other goals like just
> clean compile). Then in post step I choose to publish the lint result,
> specifying the lint-results.xml file. The build is successful but there
> is no references to lint reports in the console.

Yeah, you're right. I added the Maven job type to the plugin, but it
won't work unless you execute some Maven goal like "android-lint" or
"check" -- but since I guess these don't really exist for Android, it
can't be done?

I don't really know anything about Maven, so I'm going to remove this
from the plugin, unless somebody can tell me which goal(s) should
trigger the plugin.

Regards,
Chris

Varun Chaudhary

unread,
Aug 24, 2015, 3:42:45 PM8/24/15
to Jenkins Users
The corresponding maven goal is android:lint as mentioned here: http://blog.octo.com/en/add-lint-checks-to-android-maven-builds/#next
Reply all
Reply to author
Forward
0 new messages