t3knoid (2017-03-31 19:50):
Is it possible to scp files located outside of a workspace simply using existing Jenkins plugins? I am currently using a Python script to this currently by calling the scp command-line. The SCP plugin nor Publish over SSH does not appear to support this. Maybe in conjunction with another plug-in it is possible.
You can simply run `scp` command from shell execute step. Why would you need Python for that? You just need to configure ssh connection to whatever server you need to connect with. So basicaly you simply need to run `ssh-keygen` on your Jenkins to generate keys and `ssh-copy-id your-server` to copy key to your-server. And then...
Copy file to remote: scp /some/local/file.sh root@your-server:/some/remote/file.sh Copy dir from remote: scp -r root@your-server:/some/remote/dir /some/local/dir/ -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/91f0a3d7-613c-7876-3f5f-c8d701412973%40mol.com.pl. For more options, visit https://groups.google.com/d/optout.