-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical
-
Component/s: publish-over-ssh-plugin
-
None
-
Environment: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
Â
- is related to
-
JENKINS-64078 Publish over SSH broken on 2.264
-
- Resolved
-
-
JENKINS-64072 Configure UI completely broken after upgrade to 2.264
-
- Closed
-
-
JENKINS-64101 Publish over SSH log the output of the exec global option
-
- Closed
-