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

Publish over SSH not displaying Standard Out/Error in Console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins 2.284
      Publish over SSH 1.22

      I believe due to issues from the GUI changes in JENKINS-64072 that if you use the EXEC command to cat a log file to console the contents of the log file do show in the console.  On Jenkins 2.263 with Publish Over SSH 1.20 the contents do show to log file.

       

      Example:

      In Exec Command enter "cat /path/to/log/file.log" and currently just getting:

      2021-03-18 11:42:10.464 | Started by user Bruce Coveny
      2021-03-18 11:42:10.464 | Running as SYSTEM
      2021-03-18 11:42:10.527 | SSH: Connecting from host [host]
      2021-03-18 11:42:10.527 | SSH: Connecting with configuration [host-config] ...
      2021-03-18 11:42:11.058 | SSH: EXEC: completed after 203 ms
      2021-03-18 11:42:11.058 | SSH: Disconnecting configuration [host-config] ...
      2021-03-18 11:42:11.058 | SSH: Transferred 0 file(s)
      2021-03-18 11:42:11.058 | Build step 'Send files or execute commands over SSH' changed build result to SUCCESS
      2021-03-18 11:42:11.621 | Finished: SUCCESS
      

      In working environment get something similar to:

      2021-03-18 11:41:11.614 | Started by user Bruce Coveny
      2021-03-18 11:41:11.614 | Running as SYSTEM
      2021-03-18 11:41:11.614 | SSH: Connecting from host [host]
      2021-03-18 11:41:11.614 | SSH: Connecting with configuration [host-config] ...
      2021-03-18 11:41:11.739 | SSH: EXEC: STDOUT/STDERR from command [cat /path/to/log/file.log] ...
      2021-03-18 11:41:11.974 | ************ Start of log content ************
      ...
      2021-03-18 11:41:12.161  | ************ End of log content ************
      2021-03-18 11:41:12.161 | SSH: EXEC: completed after 203 ms
      2021-03-18 11:41:12.161 | SSH: Disconnecting configuration [host-config] ...
      2021-03-18 11:41:12.161 | SSH: Transferred 0 file(s)
      2021-03-18 11:41:12.161 | Build step 'Send files or execute commands over SSH' changed build result to SUCCESS
      2021-03-18 11:41:12.692 | Finished: SUCCESS
      

       

            Unassigned Unassigned
            bcoveny Bruce Coveny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: