Put files in custom folder on remote with sshput

8 views
Skip to first unread message

jonathan maes

unread,
Oct 19, 2018, 8:03:06 AM10/19/18
to Jenkins Users
Hi there, 
We are using Jenkins to deploy to a Windows Server and we would like to push a PowerShell script through ssh with the ssh-step plugin (https://jenkins.io/doc/pipeline/steps/ssh-steps/) and the sshstep 
But I can't seam to put the deploy file on a certain drive path - I only manage it to put it into the cygwin folder of the remote.

I am using the following command.

sshPut remote: remote, from: './deploy/deploy.ps1', into: 'E:\FolderWhereWeWantIt'

I've already tried multiple formats like '/e/FolderWhereIWantIt/' .... 

Does anybody know if it's possible? Or Does somebody know what I am missing?

Thanks

Kind regards,

Jonathan
Reply all
Reply to author
Forward
0 new messages