[JIRA] (JENKINS-60156) sshGet documentation should be more explanatory about arguments behavior

0 views
Skip to first unread message

jielpe-cblv38@protonmail.com (JIRA)

unread,
Nov 13, 2019, 9:07:02 AM11/13/19
to jenkinsc...@googlegroups.com
jlpinardon created an issue
 
Jenkins / Improvement JENKINS-60156
sshGet documentation should be more explanatory about arguments behavior
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: ssh-plugin
Created: 2019-11-13 14:06
Environment: [ssh plugin documentation|https://jenkins.io/doc/pipeline/steps/ssh-steps/#sshget-ssh-steps-sshget-get-a-filedirectory-from-remote-node]

and

github project README file
Priority: Major Major
Reporter: jlpinardon

Neither the step documentation nor the SSH Step README file (_referenced as more detailed in the former doc !!) github project explains clearly the behavior controled by each arguments where it is relevant.
Specifically it is impossible to understand from the documentation how the override argument of sshGet change the step behavior.
It would be really user friendly to explain that when override is set to false not only the local file is preserved (which is awaited, but also an exception is surprisingly raised (IllegalArgumentException... which I do not really understand... but let's admit that) with an additional error message and advice .
As this exception is not really awaited, it can lead to unexpected try/catch behavior if the exact exception and its message is not checked to decide if it is a possibly awaited error (the file already exists and won't be erased) or something else more critical.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jielpe-cblv38@protonmail.com (JIRA)

unread,
Nov 13, 2019, 9:07:03 AM11/13/19
to jenkinsc...@googlegroups.com

jielpe-cblv38@protonmail.com (JIRA)

unread,
Nov 13, 2019, 9:13:02 AM11/13/19
to jenkinsc...@googlegroups.com
jlpinardon updated an issue
Neither the [ssh step plugin documentation |https://jenkins.io/doc/pipeline/steps/ssh-steps/#sshget-ssh-steps-sshget-get-a-filedirectory-from-remote-node] nor the [ SSH Step README |https://github.com/jenkinsci/ssh-steps-plugin] file (_referenced as more detailed in the former doc !!) github project explains clearly the behavior controled by each arguments where it is relevant.

Specifically it is impossible to understand from the documentation how the override argument of sshGet change the step behavior.
It would be really user friendly to explain that when override is set to false not only the local file is preserved (which is awaited, but also an exception is surprisingly raised (IllegalArgumentException... which I do not really understand... but let's admit that) with an additional error message and advice .
As this exception is not really awaited, it can lead to unexpected try/catch behavior if the exact exception and its message is not checked to decide if it is a possibly awaited error (the file already exists and won't be erased) or something else more critical.

jielpe-cblv38@protonmail.com (JIRA)

unread,
Nov 15, 2019, 4:51:03 AM11/15/19
to jenkinsc...@googlegroups.com
_Also, the default value should be given._

jielpe-cblv38@protonmail.com (JIRA)

unread,
Nov 18, 2019, 3:23:03 AM11/18/19
to jenkinsc...@googlegroups.com
jlpinardon updated an issue
Change By: jlpinardon
Component/s: ssh-steps-plugin
Component/s: ssh-plugin
Reply all
Reply to author
Forward
0 new messages