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

scp plugin throws exception while uploading console log

      During upload of console log an exception is thrown and the connection pipe gets closed which results in copying only a portion of the console log to the remote server. This feature was working when used with Jenkins 1.525, but started to fail when I upgraded to Jenkins 1.540.

      The exception occurs when writer.flush() is called in ConsoleRunnable thread.

      steps to repro:
      1. get and install the latest version of the scp plugin
      2. goto jenkins global config page and configure an scp server
      3. create a new job
      4. add a 'Publish artifacts to SCP Repository' build step
      5. select to copy console log
      6. run a build (with a relatively large log maybe ~5 MB)
      7. verify that entire console log is copied to the remote server.

          [JENKINS-21138] scp plugin throws exception while uploading console log

          Khai Do created issue -
          Khai Do made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Khai Do made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 153000 ] New: JNJira + In-Review [ 194426 ]

            zaro Khai Do
            zaro Khai Do
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: