Jenkins' RSYNC execution
Hi everyone, so I am trying to deploy my code to a remote server. So far I've tried with
- Post over SSH plugin: But the problem is that I was unable to save the permissions on the files.
- The Rsync command line is the best reason for file permission I think, the only problem with that is I don't know how to set a 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 am doing wrong here
+3
source to share