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

Conceal console lines from Maven downloads

XMLWordPrintable

    • 1362.vee39a_d4b_02b_1

      On CI systems using cloudy agents, it is typical for the local Maven repository to be empty at the start of a build, resulting in thousands of artifacts being downloaded. You can set up a proxy mirror to make this fast, but you still get tons of noise in the log. Jenkins devs have started to work around this using -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn to suppress messages about successful downloads, but even if you know about this workaround, it is not ideal: you then lack information in the log file which would be useful diagnostics if, for example, the build hanged in the middle of a socket connection.

      Suggest having this plugin define a ConsoleAnnotatorFactory to hide these lines by default in a collapsing CSS box, so you can see that there were some downloads but do not need to look at all of them. Alternately, make withMaven define a ConsoleLogFilter that adds a ConsoleNote to each such line when it is emitted, akin to core MavenConsoleAnnotator.

            bguerin Benoit
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: