<span>Hi all,</span>
<span>I am trying to copy the files from the local bitbucket repository to the remote server using rsync-deploy pipe and then run the script at the remote server using ssh-run pipe. I tried to run the command in the remote server using ssh-run pipe and its working fine, that confirms that SSH-keys and Host finger print is correctly setup between bitbucket pipeline and the remote server. But it still dont work and I am getting an error as mentioned below. Can anyone help what is wrong or there is some limitation with the rsync pipe?</span>
copyfilestoRemote: ©filestoRemote
step:
name: Copy local files to remote server using rsync
script:
- pipe: atlassian/rsync-deploy:0.4.1
variables:
USER: '${STAGE_USER}'
SERVER: '${STAGE_SERVER}'
REMOTE_PATH: '/home/centos/test/'
LOCAL_PATH: 'test'
DEBUG: 'true'
EXTRA_ARGS: '--exclude-from=bitbucket-pipeline-exclude.txt
<span>0.4.1: Pulling from bitbucketpipelines/rsync-deploy</span><span>9123ac7c32f7: Pulling fs layer</span><span>119f3143c8c7: Pulling fs layer</span><span>47c6bfd13d55: Pulling fs layer</span><span>1e6d7649e98f: Pulling fs layer</span><span>d1bf2bfcf774: Pulling fs layer</span><span>1e6d7649e98f: Waiting</span><span>d1bf2bfcf774: Waiting</span><span>47c6bfd13d55: Verifying Checksum</span><span>47c6bfd13d55: Download complete</span><span>119f3143c8c7: Verifying Checksum</span><span>119f3143c8c7: Download complete</span><span>9123ac7c32f7: Verifying Checksum</span><span>1e6d7649e98f: Verifying Checksum</span><span>1e6d7649e98f: Download complete</span><span>d1bf2bfcf774: Verifying Checksum</span><span>d1bf2bfcf774: Download complete</span><span>9123ac7c32f7: Pull complete</span><span>119f3143c8c7: Pull complete</span><span>47c6bfd13d55: Pull complete</span><span>1e6d7649e98f: Pull complete</span><span>d1bf2bfcf774: Pull complete</span><span>Digest: sha256:405e12ef0daa23461eaf1c78d33e456a97d8026811b5999b9e2b87b354ab0015</span><span>Status: Downloaded newer image for bitbucketpipelines/rsync-deploy:0.4.1</span><span>INFO: Executing the pipe...</span><span>INFO: Enabling debug mode.</span><span>+ setup_ssh_dir</span><span>+ INJECTED_SSH_CONFIG_DIR=/opt/atlassian/pipelines/agent/ssh</span><span>+ IDENTITY_FILE=/opt/atlassian/pipelines/agent/ssh/id_rsa_tmp</span><span>+ KNOWN_HOSTS_FILE=/opt/atlassian/pipelines/agent/ssh/known_hosts</span><span>+ mkdir -p /root/.ssh</span><span>+ touch /root/.ssh/authorized_keys</span><span>+ '[' '' '!=' '' ']'</span><span>+ '[' '!' -f /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp ']'</span><span>+ error 'No default SSH key configured in Pipelines.'</span><span>+ echo -e '\e[31mERROR: No default SSH key configured in Pipelines.\e[0m'</span><span>+ exit 1</span><span>ERROR: No default SSH key configured in Pipelines.</span>