Publish Over SSH Plugin does not use Remote Directory for Exec function

161 views
Skip to first unread message

Kim Abbott

unread,
Jun 21, 2019, 1:21:24 PM6/21/19
to Jenkins Users
When setting up the SSH server it is possible to provide a directory location on the remote server (Remote Directory parameter).  This parameter is defined as "The base directory for this configuration." yet when an Exec command is performed, it is NOT run in this directory, but at the SSH user's come directory.  None of the (?) help or plugin documentation mentions this.  I lost a couple of hours trying to decipher why my commands were not being executed thinking it was a cause of my fault.

I love this plugin, but the documentation definitely needs to state that the remote directory is NOT supported for Exec commands (even though exec commands are supported by this plugin configuration) and that you must path to where you want to run your script or execute your command.  Why has this been left so obscure?  Also, if it is possible to copy files to the Remote Directory, why is it not possible to run exec commands at that directory?

Slide

unread,
Jun 21, 2019, 1:26:33 PM6/21/19
to Jenkins User Mailing List
This plugin currently doesn't have a maintainer (I was but no longer have the time). If you are interested in picking it up, check out  https://wiki.jenkins.io/display/JENKINS/Adopt+a+Plugin. You already have my go ahead as the former maintainer to get permissions and so forth. FYI, I think this issue addresses your same concern?  https://issues.jenkins-ci.org/browse/JENKINS-17052

Thanks,

Alex

On Fri, Jun 21, 2019 at 10:21 AM Kim Abbott <kabb...@gmail.com> wrote:
When setting up the SSH server it is possible to provide a directory location on the remote server (Remote Directory parameter).  This parameter is defined as "The base directory for this configuration." yet when an Exec command is performed, it is NOT run in this directory, but at the SSH user's come directory.  None of the (?) help or plugin documentation mentions this.  I lost a couple of hours trying to decipher why my commands were not being executed thinking it was a cause of my fault.

I love this plugin, but the documentation definitely needs to state that the remote directory is NOT supported for Exec commands (even though exec commands are supported by this plugin configuration) and that you must path to where you want to run your script or execute your command.  Why has this been left so obscure?  Also, if it is possible to copy files to the Remote Directory, why is it not possible to run exec commands at that directory?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a6c71c13-34f0-4380-8b88-f9f5a03032ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages