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

Publish over SSH not displaying Standard Out/Error in Console

    XMLWordPrintable

Details

    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

            bcoveny Bruce Coveny created issue -
            bcoveny Bruce Coveny made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-64072 [ JENKINS-64072 ]
            bcoveny Bruce Coveny made changes -
            Link This issue is related to JENKINS-64078 [ JENKINS-64078 ]
            bcoveny Bruce Coveny made changes -
            Link This issue is related to JENKINS-64101 [ JENKINS-64101 ]
            bcoveny Bruce Coveny made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: