Does anyone know of an SFTP task for msbuild? We'd like to automate our deployments to production, but for security reasons we don't allow SMB file-share access from our dev/test/build environment to production.
Right now, developers deploy code by manually uploading the files using FileZilla, over an SFTP connection. This is pretty error-prone, so we're planning to automate the SFTP upload. Though if there's some mechanism other than SFTP which would be just as secure, I'd be happy to use that instead.
I'm thinking of just using the "exec" msbuild task, and a command-line ftp client such as pscp. But if someone's built an sftp task already, that would of course be great.
Thanks,
Richard
Could install WinSCP and just use the MsBuild Exec Task
I used something like the following to upload an ISO file to a server after a build.
winscp.exe sftp://root:password;@192.168.0.200:22/uploaddir/ "c:\myfile.iso"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With