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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events