While trying to use .gitlab-ci.yml
to automatically deploy my theme to my production server, I receive a error:
The command executed: using a ubuntu:16.04 image
$ apt update -y && apt install openssh-client sshpass rsync -y
$ rsync -avh --progress --delete --rsh="sshpass -p $STAGE_FTP_PASS ssh -o StrictHostKeyChecking=no " --exclude=.git ./ $STAGE_FTP_USER@my.wp.address/project-folder/wp-content/themes/sg-coesfeld-theme/
The error result:
sshpass: invalid option -- 'o'
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(176) [sender=3.1.1]
ERROR: Job failed: exit code 1
I am using the exact same .gitlab-ci.yml
, server, FTP account, runner and gitlab hosting successfully to auto-deploy in other git repos.
The only thing that has changed is the source git repository and the /project-folder/
.
To be honest I do not know where to start and how to track down this issue, so I am happy about any suggestions.