You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
is it possible to deploy via rsync (atlassian / rsync-deploy) and execute the ssh command (atlassian / ssh-run) to multiple servers simultaneously?
for example:
script:
- pipe: atlassian/rsync-deploy:0.6.0
variables:
USER: $USER_PRE_PROD
SERVER: ['IP_1', 'IP_2', 'IP_3']
REMOTE_PATH: $REMOTE_PATH
LOCAL_PATH: 'app'
when I run it like this I have such an error: /pipe.sh: line 27: SERVER: SSH_SERVER variable missing
env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/rsync-deploy" \
--env=REMOTE_PATH="$REMOTE_PATH" \
--env=SERVER_0="IP_1" \
--env=SERVER_1="IP_2" \
--env=SERVER_2="IP_3" \
--env=SERVER_COUNT="3" \
--env=USER="$USER_PRE_PROD" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
...
Status: Downloaded newer image for bitbucketpipelines/rsync-deploy:0.6.0
/pipe.sh: line 27: SERVER: SSH_SERVER variable missing.
INFO: Executing the pipe...
Hi @Paweł Sobociński . Thanks for your question. This feature is not supported, but you can use parallel steps where each script relates to each of your server. Example: Parallel steps
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.