Forums

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

Is anyone able to offer guidance on using Bitbucket Cloud with Source Link?

Mike Demler
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!
October 4, 2022

We're a .NET and Atlassian shop.  We'd like to be able to debug our NuGet packages using Source Link.  I've followed the instructions provided for getting Source Link working with a Bitbucket repo without any luck.  It's unable to retrieve the files while debugging.

I suspect that it might be due to the fact that we're using 2-factor authentication, since we make use of Bitbucket Pipelines.  I've reached out for assistance from the Source Link team, as well as on Stack Overflow with no luck, so I thought I'd see if anyone in the Atlassian community might be able to offer any guidance?

Many Thanks!

Mike

1 answer

1 accepted

0 votes
Answer accepted
Mike Demler
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!
April 28, 2023

For folks that run into this same issue, we were able to determine that this was due to Pipelines using HTTP when pulling the source.  Source Link utilizes this repository path and ends up using HTTP in what it embeds, which results in a 301 (redirect) when it later attempts to access the source code.  In order to work around this, we now temporarily change the repository path to HTTPS in our pipeline prior to doing the build and then reset it back immediately afterwards.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events