The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rsync-deploy re-deploying all files

alextcranglesim
February 24, 2023

To whom it may concern,

 

Hoping someone can help me figure out what is wrong with my rsync-deploy pipeline. It seems to be re-deploying all code, rather than just the files that have changed.

 

pipelines:
branches:
master:
- step:
name: rsync
script:
- pipe: atlassian/rsync-deploy:0.8.1
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_HOST
REMOTE_PATH: $DEPLOY_PATH
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/
EXTRA_ARGS: '-apuv -c --update ${BITBUCKET_CLONE_DIR}/ --exclude-from=deployment-exclude-list.txt'
- ssh $DEPLOY_USER@$DEPLOY_HOST "cd ${DEPLOY_PATH}/ && composer install && sudo service php8.1-fpm restart" 

 I've tried to force it to check the checksum, but every time master is pushed to/merged in to, all files are changed on the server (timestamp is updated for every file, not just the changed files)

Thanks,

Alex

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
alextcranglesim
February 24, 2023

edit: put my reply in answer by mistake...can't delete an answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 24, 2023

Hi @alextcranglesim 

Thank you for your question!

Have you tried these tips?

 

Best regards,
Oleksandr Kyrdan

alextcranglesim
February 24, 2023

Hi,

--ignore-existing would skip all the files, because they exist on the server already

I want to only sync changed files in the latest change of master. The checksum of existing, non changed files shouldn't have changed as they haven't been edited.

But when rsync-deploy runs in docker container, all files are marked as changed for some reason, so the deploy pushes all files.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events