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

Publish over SSH not displaying Standard Out/Error in Console

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      

       

        Attachments

          Issue Links

            Activity

            Hide
            bcoveny Bruce Coveny added a comment -

            Tim Jacomb not sure if you may have input on this since fixing JENKINS-64078?

            Show
            bcoveny Bruce Coveny added a comment - Tim Jacomb not sure if you may have input on this since fixing JENKINS-64078 ?
            Hide
            bcoveny Bruce Coveny added a comment -

            The resolution from this appears to be to enable "Verbose logging" from the advanced options as per JENKINS-64101 issue.

            Show
            bcoveny Bruce Coveny added a comment - The resolution from this appears to be to enable "Verbose logging" from the advanced options as per JENKINS-64101 issue.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bcoveny Bruce Coveny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: