The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events