Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFTP task for msbuild?




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

like image 285
Richard Beier Avatar asked May 20 '09 01:05

Richard Beier


1 Answers

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"
like image 156
Ryu Avatar answered Sep 21 '22 06:09

Ryu