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

Jacoco report empty when Ant build run with Jenkins

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • ant-plugin, jacoco-plugin
    • None
    • Linux

      When building the project through Ant directly, Jacoco produces a coverage report as expected, when building the project via Jenkins the .exec file produced by Jacoco is empty and the resulting coverage report shows 0% across all classes.
      I've searched and come up empty for issues relating to interaction between Ant and Jenkins.

          [JENKINS-21340] Jacoco report empty when Ant build run with Jenkins

          centic added a comment -

          Processing coverage information works as expected as far as I see.

          Please read the output of the JaCoCo plugin as part of your build carefully, it prints out which files are found based on your configuration, this typically indicates that the locations of the .exec/.class/.java files are not set correctly.

          Please reopen this issue together with the relevant parts of the build-output if there is still an issue for you.

          centic added a comment - Processing coverage information works as expected as far as I see. Please read the output of the JaCoCo plugin as part of your build carefully, it prints out which files are found based on your configuration, this typically indicates that the locations of the .exec/.class/.java files are not set correctly. Please reopen this issue together with the relevant parts of the build-output if there is still an issue for you.

            ognjenb Ognjen Bubalo
            sam_minns Sam Minns
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: