Digest: sha256:25f4f1919324ff3da504da3c2837e83f5f4bfa8e74decca0c3c2c5e0319f7381
Status: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file:0.7.3
DEBUG: Starting new HTTPS connection (1): bitbucket.org:443
DEBUG: https://bitbucket.org:443 "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/11" 200 None
INFO: Executing the pipe...
INFO: Start uploading 1 files ['test-reports/report.xml']...
DEBUG: Starting new HTTPS connection (1): api.bitbucket.org:443
DEBUG: https://api.bitbucket.org:443 "POST /2.0/repositories///downloads HTTP/11" 403 57
✖ Failed to upload files ['test-reports/report.xml']. Status code: 403. Message: This endpoint does not support token-based authentication.
@Fredrik Svärd hi. Thank you for your question.
According to your logs
DEBUG: https://api.bitbucket.org:443 "POST /2.0/repositories///downloads HTTP/11" 403 57
G'day, @Fredrik Svärd
Welcome to the community!
You should generate an App password as your credentials. The combination should be your username as well as App Password.
Let me know if that works.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I have already tried that before your suggestion:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Fredrik Svärd
Thanks for the confirmation.
If you are using the correct username and password, then I believe you should try to call your workspace and repository name directly instead of using the variable.
I also suggest removing the account/repository if you are uploading the artifacts on the same workspace/repository as it will use the default ${BITBUCKET_REPO_OWNER} and ${BITBUCKET_REPO_SLUG}.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.