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

0 answers

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