New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for connecting to Azure DevOps as a code host #8647
Comments
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.15 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.16 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
Note: we now have working example on https://k8s.sgdev.org/site-admin/external-services/RXh0ZXJuYWxTZXJ2aWNlOjE0, should be helpful for whoever takes this. |
Hi @unknwon and all! Can someone share how you got this working? I'm a new user and I've been trying to set up a local Sourcegraph 3.25.2 instance on Ubuntu 18.04 connected to our Azure DevOps repos, and having no luck. I tried adding them as a generic Git host, like this:
("MYORG", "Project1", "Project2", and "Project3" are bogus names, of course, for privacy) and the repos show up in the list of our repos, but when I try to clone any of them, I just get this error:
I'm running Sourcegraph as a user which has an SSH key attached to a DevOps account that has access to these repos. |
@apjanke We used HTTPS, I'm pretty sure SSH won't work because there is no way to specify which SSH key to use for Azure code host connections. {
"url": "https://{REDACTED}@sourcegraph.visualstudio.com/sourcegraph/_git/",
"repositoryPathPattern": "sourcegraph.visualstudio.com/{repo}",
"repos": [
"Test%20Repo"
]
} |
@unknwon Darn. Were you using 2FA with your DevOps accounts? We have 2FA enabled for our Microsoft/Azure AD accounts, and I haven't been able to get HTTPS-based cloning working on Linux with that setup. |
@apjanke Not sure about Azure DevOps, but GitHub allows using PAT as password when 2FA enabled, maybe that's also the case? |
@unknwon Aha, yes it does: https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page I will give that a try. |
Chiming in here that I think this would be a welcome addition - I've noticed a few questions coming in from prospective Sourcegraph customers lately to the CE team and to the SDRs around setting up ADO. |
cc @ryphil for triage, also cc @flying-robot this was an onboarding task for Indra but we didn't get it prioritized, maybe give another try for the coming new hire? |
From a user
Based on searching online, it looks like Azure DevOps only supports port 22 for SSH access, so no port number is required. References:
The text was updated successfully, but these errors were encountered: