Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I host a nuget or npm style artifact feed on Bitbucket?

Daniel Przybylski
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!
December 12, 2023

I'm new to Bitbucket, and I don't see any package or artifact feed hosting like in Github or Azure DevOps. Before I start hosting that in Azure DevOps, I want to make sure that it's just not there under a different name.

2 answers

1 vote
Daniel Schealler May 23, 2024

I was hoping to be able to use Azure Artifacts as my nuget package retention platform, but it looks like OIDC between Bitbucket Pipelines and Microsoft Entra is not currently supported.

https://jira.atlassian.com/browse/BCLOUD-22206

An Atlassian-native way to retain nuget packages that would be feature-complete as to what is achievable in Azure DevOps would have been ideal.

I'm sufficiently embedded in Atlassian products and workflow that I don't think this would be sufficient reason to migrate everything to Azure DevOps, but this did give me a moment to think about it to make that decision.

I'll have to see if I can find an alternate method for hosting nuget packages built in BitBucket.

Daniel Schealler June 8, 2024

If anyone's interested, I was able to get this up and running for Azure Artifacts by using service principals and security groups for the permissions themselves.

In hindsight I think this has actually turned out to be the better solution, because I'm now able to manage all the credentials for that centrally under Azure.

It means that in the future as I want to add more people to have access to those artifact feeds, I can just set them up with a Microsoft Entra credential, add them to the appropriate security group, and just like that they can access what they need.

Since I'm getting everything in this new project set up in Azure as the cloud backend anyway, this has turned out to work out better than if Atlassian hosted an equivalent product anyway.

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2023

Hello @Daniel Przybylski  and welcome to the community!

You can store your library in a Bitbucket Cloud repository and install it using the npm command with the following syntax : 

npm install git+ssh://git@bitbucket.org/{user}/{repository}.git

I also found this tutorial that might be useful when setting up your dependencies to download from Bitbucket repository : 

Thank you, @Daniel Przybylski !

Patrik S

Vittorio Sozzi January 22, 2024

So no solution for nuget?

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2024

Hello @Vittorio Sozzi ,

Bitbucket is primarily designed for managing and tracking your code using git as the version control solution. It's not typically used as a package manager for storing Nuget packages.

Nuget packages are typically stored and distributed through a different type of application known as package manager. These systems allow you to store, distribute, update, and manage packages like Nuget. Examples of such systems include NuGet Gallery, ProGet, and MyGet. You may want to consider using these alternatives to host your Nuget artifact feed.

Thank you, @Vittorio Sozzi .

Patrik S

Suggest an answer

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

Atlassian Community Events