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?
name: Copy local files to remote server using rsync
- pipe: atlassian/rsync-deploy:0.4.1
0.4.1: Pulling from bitbucketpipelines/rsync-deploy
9123ac7c32f7: Pulling fs layer
119f3143c8c7: Pulling fs layer
47c6bfd13d55: Pulling fs layer
1e6d7649e98f: Pulling fs layer
d1bf2bfcf774: Pulling fs layer
47c6bfd13d55: Verifying Checksum
47c6bfd13d55: Download complete
119f3143c8c7: Verifying Checksum
119f3143c8c7: Download complete
9123ac7c32f7: Verifying Checksum
1e6d7649e98f: Verifying Checksum
1e6d7649e98f: Download complete
d1bf2bfcf774: Verifying Checksum
d1bf2bfcf774: Download complete
9123ac7c32f7: Pull complete
119f3143c8c7: Pull complete
47c6bfd13d55: Pull complete
1e6d7649e98f: Pull complete
d1bf2bfcf774: Pull complete
Status: Downloaded newer image for bitbucketpipelines/rsync-deploy:0.4.1
INFO: Executing the pipe...
INFO: Enabling debug mode.
+ mkdir -p /root/.ssh
+ touch /root/.ssh/authorized_keys
+ '[' '' '!=' '' ']'
+ '[' '!' -f /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp ']'
+ error 'No default SSH key configured in Pipelines.'
+ echo -e '\e[31mERROR: No default SSH key configured in Pipelines.\e[0m'
+ exit 1
ERROR: No default SSH key configured in Pipelines.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events