Jenkins Publish to S3 and preserve folder structure

By polfilm,

  Filed under: AWS, Jenkins
  Comments: None

Use bash script in your job along with S3cmd. Sync will make sure only changed files get uploaded.
Copy only changed files. Delete removed files. Exclude .git folder

s3cmd sync -r -P --delete-removed --exclude '.git/*' $WORKSPACE/ s3://YOUR_BUCKET_NAME

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.