Forums

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

How can I use a NuGet repository from AppVeyor in a pipeline, using an API key?

airwolf
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!
March 12, 2025

It works using my username and password, but not API key. sdfs.PNG

 

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

 

sdsf.PNG

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2025

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events