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

Cannot hide Pipeline output when using Timestamps

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • timestamper-plugin
    • None

      In JENKINS-41845 they added the CSS class "pipeline-new-node" to the default pipeline console output lines to make it possible to hide these lines via CSS.

      When using timestamps in Pipeline jobs this leads to lines with multiple timestamps since the timestamps for these lines stay visible.

      It would be nice to also add a CSS class for the timestamps in "pipeline-new-node" lines to be able to also hide them.

          [JENKINS-57080] Cannot hide Pipeline output when using Timestamps

          Tim Black added a comment -

          wolterhis, I just raised a duplicate issue for this (https://issues.jenkins.io/browse/JENKINS-65010) and was wondering if you had had any success working around the issue in the past couple years? I'm also using the "pipeline-new-node" Extra CSS in SimpleTheme plugin in order to eliminate the unnecessarily verbose Pipeline output to the console. Would love to figure out how to keep that setting but eliminate the duplicate timestamps.. Note, that in my case, I'm only getting duplicate timestamps when I enter a shared library function. So I guess this is a bit different from your case.

          Tim Black added a comment - wolterhis , I just raised a duplicate issue for this ( https://issues.jenkins.io/browse/JENKINS-65010 ) and was wondering if you had had any success working around the issue in the past couple years? I'm also using the "pipeline-new-node" Extra CSS in SimpleTheme plugin in order to eliminate the unnecessarily verbose Pipeline output to the console. Would love to figure out how to keep that setting but eliminate the duplicate timestamps.. Note, that in my case, I'm only getting duplicate timestamps when I enter a shared library function. So I guess this is a bit different from your case.

          Lars added a comment -

          No, I did not try any workarounds. Currently, as long as I am not able to also hide the timestamps I leave the verbose pipeline output visible. I don't like it, but having timestamps turned on is more important to me.

          Lars added a comment - No, I did not try any workarounds. Currently, as long as I am not able to also hide the timestamps I leave the verbose pipeline output visible. I don't like it, but having timestamps turned on is more important to me.

          peng wu added a comment -

          We have large sections of the console logs like this:

          2022-05-05 18:20:39 [Pipeline] }
          2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 - name: usage-collector-service
          2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 repository: https://blah.com/
          2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 version: 0.0.43-2

          peng wu added a comment - We have large sections of the console logs like this: 2022-05-05 18:20:39 [Pipeline] } 2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 - name: usage-collector-service 2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 repository: https://blah.com/ 2022-05-05 18:20:43 2022-05-05 18:20:43 2022-05-05 18:20:43 version: 0.0.43-2

            Unassigned Unassigned
            wolterhis Lars
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: