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
hi everyone. I've tried a few things, but I am not sure why this deploy pipeline is giving the following error:
aws s3 sync /opt/atlassian/pipelines/agent/build/build s3://randomproject1234-media/repos/
warning: Skipping file /opt/atlassian/pipelines/agent/build/build/files.tar.gz. File/Directory is not readable.
My pipeline:
custom:
items:
- step:
name: items
image:
name: <account#here>.dkr.ecr.us-east-1.amazonaws.com/<imageimusing>:latest
aws:
access-key: $AWS_ACCESS_KEY_ID
secret-key: $AWS_SECRET_ACCESS_KEY
script:
- yum install -y tar gzip
- export PROJECT_NAME=project
- export ARCHIVE_NAME=${BITBUCKET_REPO_SLUG}-${BITBUCKET_TAG:-v0.0.0-unknown}.tar.gz
- mkdir /tmp/artifacts
- mkdir build
- cp -R folder /tmp/artifacts
- touch /tmp/artifacts/${PROJECT_NAME}-${ARCHIVE_NAME}
- tar --exclude=/tmp/artifacts/${PROJECT_NAME}-${ARCHIVE_NAME} -cvzf /tmp/artifacts/${PROJECT_NAME}-${ARCHIVE_NAME} /tmp/artifacts
# I know this works great, but I want to understand why the the aws-s3-deploy:1.2.0 isn't working
#- aws s3 cp /tmp/artifacts/*.tar.gz s3://${S3_EXPORT_BUCKET}/repos/
# steps below don't work. for some reason the *.tar.gz in the build folder is not read?
#warning: Skipping file /opt/atlassian/pipelines/agent/build/build/project-myreponame-v0.0.0-unknown.tar.gz. File/Directory is not readable.
- mv /tmp/artifacts/*.tar.gz build
- ls -la build
artifacts:
- build/*
- step:
name: Upload to S3
script:
- pipe: atlassian/aws-s3-deploy:1.2.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
S3_BUCKET: $S3_EXPORT_BUCKET/repos
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/build
#DEBUG: 'true'
@CDR123 hi. Seems like you have problems with your files permissions. Try this solution.
Regards, Igor
@Igor Stoyanov sorry I didn't see your reply earlier. yes I ended up running something like that to fix it. I just forgot to follow up with you all here. thnx for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.