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

Maven builds for web sites with <aggregate/> enabled don't collect unit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • sitemonitor-plugin
    • None
    • Jenkins 1.606, maven 3, linux server

      We have multi-module maven projects, where we want the surefire reports, javadoc etc to be aggregated up to the top level project.
      This works fine for everything except the surefire report. When we run a Maven build for the site then the surefire report at the top level claims that zero tests were run, even though all the unit tests were actually run.
      If I instead configure the build as a Freeform project instead of a Maven project, and have a single build step of running top-level maven target, then everything works fine.

      One of the key differences I found in the console output was that when running it as a maven build, I never see any lines similar to this:

      [INFO] <<< maven-surefire-report-plugin:2.17:report (report:report) @ projectName <<<
      

            cliffano cliffano
            scooper4711 scooper4711
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: