Background: I have a repository say example.com along with master and develop branch. My master branch repo push the change to /efs/prod through jenkins build and develop branch repo push the change to /efs/qa through jenkins build. Now I have setup a folder say /s3 in my develop branch of repo to push the changes to amazon S3, for this I have used "Publish Artifacts to S3 Bucket" plugin in jenkins.
Requirement: I am able to move the bitbucket uploads to aws s3 but when someone delete the file in bitbucket repo then I am unable to sync it with AWS s3. I have followed below source to move the repo changes to s3
http://www.devops-share.com/upload-builds-from-jenkins-to-s3/
Could someone let me know how could I make jenkins to sync the bitbucket repo with S3.