I'm trying to deploy my code to a remote server. So far I've tried
- Publish over SSH Plugin: the problem is that I'm unable to keep file permissions
- Rsync command: this keeps the file permissions, but the problem is that I don't know how to set the password for it to work automatically
This is what I get:
[JenkinsBuild] $ /bin/sh -xe /var/lib/jenkins/tmp/hudson4646064064846581974.sh
+ rsync -PSauve ssh --exclude=JenkinsBuild app bower.json config gruntfile.js karma.conf.js LICENSE.md Makefile node_modules package.json Procfile protractor.conf.js public README README.md server.js john@192.168.2.10:/srv/dp/prod
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
Any ideas what I'm doing wrong here?