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: 

Bitbucket Pipelines to S3 - failed

Ken Ernst
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2019

I have a simple pipelines definition that uploads all files in the repo (its a repo of images) to S3 upon merge. Here is the definition:

------ indentation is off below.... ---------

image: atlassian/pipelines-awscli
pipelines:

 branches:

 develop:

- step:

   name: Deploy develop branch to S3 bucket idp-ui-cdn-dev script:

- export AWS_SECRET_ACCESS_KEY=$S3APIUSER_ACCESSS_SECRET_KEY

- export AWS_ACCESS_KEY_ID=$S3APIUSER_ACCESS_KEY_ID

- aws s3 sync --delete . s3://my-s3-bucket-for-images

------

 

The pipeline kicks off just fine and syncs a bunch (100s) of files to S3 then reports 'failed' and stops. It appears to stop at the same file each time. 

 

Any insights would be helpful. 

How do I trouble shoot/debug this?

 

Thanks

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2019

Hi Ken,

Is the 'Failed" you're referencing from the logs of the AWS s3 sync command? Or elsewhere in the Pipelines UI?

You can start by enabling debug mode on the command. The following should do the trick.

aws --debug s3 sync --delete . s3://my-s3-bucket-for-images

After that you should hopefully have some more useful logs to continue debugging with. Feel free to post them back here. :)

Thanks,

Phil

TAGS
AUG Leaders

Atlassian Community Events