rsync to server using uploaded SSH key

I want to use rsync to deploy build artifacts to a Linux server (both for speed and to delete files from the server that no longer exist in the build output). There doesn't seem to be a plugin for this. I can, of course, write it as a command line build step, but is there a way to authenticate using a public key uploaded to TeamCity (like when using SSH Upload)?

0
1 comment

Hi Evan,

 

as long as rsync is using ssh authentication, you could use the ssh agent build feature: https://confluence.jetbrains.com/display/TCD18/SSH+Agent

0

Please sign in to leave a comment.