It works using my username and password, but not API key.
Some weird HTML restrictions on this forum, so not sure how to paste code.
If I use API, it does not work and I get Access Denied
Hi @airwolf and welcome to the community!
I suggest debugging this build locally, outside of Pipelines. The goal would be to see if the same issue happens outside Pipelines and narrow down whether this is a Pipelines-specific issue (e.g. with configuration or variables) or not.
If you're running this Pipelines build on Atlassian's infrastructure or with a Linux Docker self-hosted runner, these builds run in Docker containers based on the image you specify in your bitbucket-pipelines.yml file. You can follow this guide to troubleshoot your build locally with Docker:
If this step runs with a Linux Shell or MacOS self-hosted runner, these runners use Bash to run pipelines steps directly on the host. You can clone the repo, reset to the commit of the failed build, and run the commands from your step's script directly on the host machine in Bash.
If this step runs with a Windows self-hosted runner, this runner uses PowerShell to run pipelines steps on the Windows machine. You can clone the repo, reset to the commit of the failed build, and run the commands from your step's script on PowerShell on the host machine.
If the issue is also reproducible locally, then I'd suggest reaching out to AppVeyor, because it most likely has to do with authentication to a third-party product. I don't know how API keys are used for authentication in AppVeyor and whether you also need to provide a username or email along with the key, or if there's some other configuration issue.
If you cannot reproduce this issue locally, you can create a ticket with the Bitbucket support team, provide in the support ticket the URL of the failed build and also the output from your local debugging for further investigation. You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.
Please feel free to reach out if you have any questions!
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.