Forums

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

Trying to upload file to downloads using upload-file pipe, getting 401 error

Eli Ogilvy
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!
July 18, 2025

I am getting the following error in my pipeline:

 

INFO: Executing the pipe...
INFO: Current directory: /opt/atlassian/pipelines/agent/build


WARNING: This pipe accepts files only from /opt/atlassian/pipelines/agent/build or any subfolders in this
path.


INFO: Start uploading 1 files ['791.zip']...


API request failed with status 401. Check your username and app password and try again.
Here is the step in question: 

 - step: &move-to-downloads
name: Upload artifact to Downloads
script:
- pipe: atlassian/bitbucket-upload-file:0.7.4
variables:
BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
FILENAME: '*.zip'

The access token I'm using has these scopes:

write:repository:bitbucket, read:repository:bitbucket

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2025

Hi @Eli Ogilvy 

Welcome to the community!

Have you tried cloning the repository using the same token to verify that the token has write access to it? If you can, please raise a support ticket on our Support portal so we can help troubleshoot the issue further.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events