Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20301

Android Lint Plugin can't find report in multimodule project

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: android-lint-plugin
    • Labels:
      None
    • Environment:
      Static Analysis Utilities 1.54
      Android Lint Plugin 2.1
      Maven Project Plugin 1.526
      Jenkins 1.526
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          varunkumarchaudhary Varun Kumar added a comment -

          Is there any update on this bug? Has this been fixed? The latest verison of android-lint plugin is still not picking up reports from multi module maven projects

          Show
          varunkumarchaudhary Varun Kumar added a comment - Is there any update on this bug? Has this been fixed? The latest verison of android-lint plugin is still not picking up reports from multi module maven projects
          Hide
          orrc Christopher Orr added a comment -

          If it doesn't work in the latest version, then I guess it's still an issue.

          I might be able to look at it if someone can provide a sample project and job config which reproduces this.

          Show
          orrc Christopher Orr added a comment - If it doesn't work in the latest version, then I guess it's still an issue. I might be able to look at it if someone can provide a sample project and job config which reproduces this.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              dant3 Vyacheslav Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: