It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Permission denied in bitbucket-upload-file

fperron I'm New Here Jan 10, 2020


I'm trying to upload a saved docker image to downloads.

The file is found since it passes the check on line 39, but I get a permission denied on line 45.

--- the error ---

Traceback (most recent call last): File "/", line 78, in <module> File "/", line 45, in run with open(filename, 'rb') as f:PermissionError: [Errno 13] Permission denied: 'pigeon-web-13'

--- the config ---

- step:
- docker
- docker
- pipe: atlassian/bitbucket-upload-file:0.1.2

--- the script ---

The build script does not chown or chmod the file.

The image file is created with a simple 

docker save


Would you help me understand how I can make the file accessible to the pipe?



2 answers

0 votes
fperron I'm New Here Jan 11, 2020

It works with the classic curl

curl -s -X POST \
https://${AUTH}${USER}/${REPO}/downloads \
-F files=@${FILE}
0 votes

Hi @fperron could you share the output of the following command in the pipeline:


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

536 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you