Android Lint and maven builds

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Android Lint and maven builds

Patrik Åkerfeldt
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,
Reply | Threaded
Open this post in threaded view
|

Re: Android Lint and maven builds

Christopher Orr
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
Reply | Threaded
Open this post in threaded view
|

Re: Android Lint and maven builds

Varun Chaudhary
The corresponding maven goal is android:lint as mentioned here: http://blog.octo.com/en/add-lint-checks-to-android-maven-builds/#next

On Tuesday, August 7, 2012 at 4:52:14 PM UTC-7, Christopher Orr wrote:
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3a167cd1-b2f2-4072-a5fa-597aef0edd69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.