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

Scrolling behaviour of streaming log

    Details

    • Sprint:
      Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 2, Blue Ocean 1.5 - beta 2
    • Similar Issues:

      Description

      Problem
      If I open a running step, I am not automatically taken to the bottom of the log. When I scroll to the bottom of the log, I must keep scrolling down to see new log lines as they arrive.

      Steps to reproduce

      1. Run the Pipeline defined in the example below
      2. Open the last step step, which should be running and outputting lines regularly
      3. You should see that you are not scrolled to the bottom of the log
      4. You should see that you have to keep scrolling to the bottom as new lines arrive

      Example

      pipeline {
          agent any
          stages {
              stage('1') {
                  steps {
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      echo 'Hello world'
                      sh "for i in {0..100}; do echo -e \"\$i\"'\r'; sleep 1; done; echo"
                  }
              }
          }
      }
      

        Attachments

          Issue Links

            Activity

            Hide
            kshultz Karl Shultz added a comment -

            Testing Notes:

            • A manual, visual verification by a human is probably the best way to make sure that a change like this is nice looking, scrolls smoothly, etc.
            • An automated test could be added to verify that certain messages in a long log show up early, and scroll out of view late. Similarly, messages toward the end of the log shouldn't appear at the very beginning.
            Show
            kshultz Karl Shultz added a comment - Testing Notes: A manual, visual verification by a human is probably the best way to make sure that a change like this is nice looking, scrolls smoothly, etc. An automated test could be added to verify that certain messages in a long log show up early, and scroll out of view late. Similarly, messages toward the end of the log shouldn't appear at the very beginning.
            Hide
            sophistifunk Josh McDonald added a comment -

            Duped by (and fixed as) JENKINS-49929

            Show
            sophistifunk Josh McDonald added a comment - Duped by (and fixed as)  JENKINS-49929

              People

              • Assignee:
                sophistifunk Josh McDonald
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: