-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Static Analysis Utilities 1.54
Android Lint Plugin 2.1
Maven Project Plugin 1.526
Jenkins 1.526
I have a multimodule build that contains android project as one of it modules. This module is setted up to run lint everytime compile is in progress. But android-lint step does not publishes any report.
Here is what I'm seeing in logs:
INFO: — android-maven-plugin:3.7.0:lint (lint) @ application —
[INFO] Performing lint analysis.
[INFO] Writing Lint HTML report in /var/lib/jenkins/workspace/android-project/application/target/lint-results/lint-results-html
[INFO] Writing Lint XML report in /var/lib/jenkins/workspaceandroid-project/application/target/lint-results/lint-results.xml
[INFO] Running command: /opt/android/sdk/tools/lint
[INFO] with parameters: [--showall, --html, /var/lib/jenkins/workspace/android-project/application/target/lint-results/lint-results-html, --xml, /var/lib/jenkins/workspace/android-project/application/target/lint-results/lint-results.xml, --sources, /var/lib/jenkins/workspace/android-project/application/src/main/java, /var/lib/jenkins/workspace/android-project/application, --exitcode]
[INFO] Lint analysis completed successfully.
[android-lint] No report found for mojo lint
My pattern for lint files looks like this:
*/target/lint-results/lint-results.xml
I also found a thread on the net about similar issues: http://jenkins-ci.361315.n4.nabble.com/Android-Lint-and-maven-builds-td4634537.html
Creating custom project instead of maven one solves issue.