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

Publish over SSH not displaying Standard Out/Error in Console

    • 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
      

       

          [JENKINS-65170] Publish over SSH not displaying Standard Out/Error in Console

          Bruce Coveny added a comment -

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

          Bruce Coveny added a comment - timja not sure if you may have input on this since fixing JENKINS-64078 ?

          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.

          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.

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/77
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-65170%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/77 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-65170%22 (Note: this is an automated bulk comment)

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

              Created:
              Updated:
              Resolved: