[JIRA] (JENKINS-51182) Conceal console lines from Maven downloads

1 view
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
May 7, 2018, 12:58:03 PM5/7/18
to jenkinsc...@googlegroups.com
Jesse Glick created an issue
 
Jenkins / New Feature JENKINS-51182
Conceal console lines from Maven downloads
Issue Type: New Feature New Feature
Assignee: Alvaro Lobato
Components: pipeline-maven-plugin
Created: 2018-05-07 16:57
Priority: Major Major
Reporter: Jesse Glick

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
May 7, 2018, 1:00:03 PM5/7/18
to jenkinsc...@googlegroups.com
Jesse Glick commented on New Feature JENKINS-51182
 
Re: Conceal console lines from Maven downloads

Or could live in another plugin if JENKINS-26462 moves forward.

cleclerc@cloudbees.com (JIRA)

unread,
May 29, 2018, 5:20:02 AM5/29/18
to jenkinsc...@googlegroups.com

Jesse Glick do you have an example of a ConsoleAnnotatorFactory to " hide these lines by default in a collapsing CSS box"?

jglick@cloudbees.com (JIRA)

unread,
Jun 5, 2018, 6:45:02 PM6/5/18
to jenkinsc...@googlegroups.com

Not precisely that. There is a collapsing console sections plugin. Also here I did something sort of related with CSS tricks.

jglick@cloudbees.com (JIRA)

unread,
Nov 14, 2019, 1:33:04 PM11/14/19
to jenkinsc...@googlegroups.com

-ntp is a bit better but has the same issue with not being to diagnose a download hang. On the other hand this is arguably something that should be implemented upstream in Maven, not in Jenkins.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages