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

Can't copy/paste stage logs because the selections get deselected after mouse button is released

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins:
      Core 2.11
      Pipeline: Stage View 2.9

      Client:
      Fedora Workstation 27
      Chrome 65.0.3325.181
      Firefox 59.0.1

      Summary:
      When viewing the logs for an individual stage in stage view (by clicking on that stage and selecting "Logs"), the user is not able to copy content from those logs into their clipboard, because the highlighted area gets deselected as soon as they release the mouse button.

      Steps to recreate:
      1. Create a very simple pipeline. Mine looks like:

      node {
          currentDirectory = pwd()
      
          stage ("thing") {
              sh "echo HERE IT IS ${currentDirectory}"
              echo "PWD is ${currentDirectory}"
          }
      }
      

      2. Run the pipeline.

      3. Click in the green "stage' area of any existing run, and click Logs:

      4. Pick an entry in the popover.

      5. Click and hold the left mouse button to select some text. That behaves normally.

      6. But the moment you release your mouse button, the "selection' disappears. Makes it very difficult to copy something into the clipboard for later use, like for a Google search.

      I can try to get a video captured if that would help.

          [JENKINS-50375] Can't copy/paste stage logs because the selections get deselected after mouse button is released

          Timothy You added a comment -

          +1 the same here and this could be quite helpful to be fixed

          Timothy You added a comment - +1 the same here and this could be quite helpful to be fixed

          +1 the same here. very annoying.

          Gaétan QUENTIN added a comment - +1 the same here. very annoying.

          Barel Elbaz added a comment -

          +1 is there any solution / workaround?

          Barel Elbaz added a comment - +1 is there any solution / workaround?

          Oliver Schoenborn added a comment - - edited

          This is critical when running steps in parallel: the output of the steps are interleaved so a copy/paste from the console output is very tedious to cleanup for only the step you want. 

          Update: So I found a workaround that works in the current version of chrome on linux... I have no idea if it'll work anywhere else: 

          1. Open the stage logs for the desired stage
          2. expand the step you want the logs of
          3. select the first few characters, release mouse: the selection highlight disappears
          4. scroll to bottom
          5. shift-right-click to where you want to select: this extends the selection that you did in step 3 to there AND shows the context menu!!! (HACK!!!)
          6. select Copy from the context menu

          For those using Blue Ocean plugin, the stage output you get from there does not have this issue. 

          Oliver Schoenborn added a comment - - edited This is critical when running steps in parallel: the output of the steps are interleaved so a copy/paste from the console output is very tedious to cleanup for only the step you want.  Update: So I found a workaround that works in the current version of chrome on linux... I have no idea if it'll work anywhere else:  Open the stage logs for the desired stage expand the step you want the logs of select the first few characters, release mouse: the selection highlight disappears scroll to bottom shift-right-click to where you want to select: this extends the selection that you did in step 3 to there AND shows the context menu!!! (HACK!!!) select Copy from the context menu For those using Blue Ocean plugin, the stage output you get from there does not have this issue. 

            Unassigned Unassigned
            kshultz Karl Shultz
            Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: