Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Files produced by pipeline result in "permission denied" error when setting them as artifacts

Jeremy McClintock
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!
May 21, 2025

My pipeline builds several objects, one being a .bin file.  The .bin file lives in $BITBUCKET_CLONE_DIR/workspace/inv-mh/Flash/

Everything works until this line in my bitbucket-pipelines.yml:

#artifacts:
          - "workspace/inv-mh/Flash/*.bin"

I get this error in the log:

+ workspace/inv-mh/Flash/*.bin
bash: workspace/inv-mh/Flash/DBG-FW-PWR-v1.1.22.bin: Permission denied

The file permission is:

-rw-rw-rw- 1 root root 70414 May 21 23:38 DBG-FW-PWR-v1.1.22.bin

All containing folder permissions:

drwxrwxrwx 3 root root 4096 May 22 00:01 ./workspace
drwxrwxrwx 13 root root 4096 May 22 00:01 ./workspace/inv-mh
drwxrwxrwx 8 root root 4096 May 22 00:01 ./workspace/inv-mh/Flash
Any help would be appreciated.

thanks,
Jeremy

1 answer

1 accepted

1 vote
Answer accepted
Jeremy McClintock
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!
May 22, 2025
User error on my part, the "artifacts:" section of my yml was commented out (from earlier testing), rendering all the files listed below it as malformed/meaningless.
Charlie Misonne
Community Champion
May 22, 2025

Thanks replying to your own question with the solution you found!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events