You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "Tugrulhankars (via GitHub)" <gi...@apache.org> on 2026/07/27 17:43:19 UTC
[PR] Azure DevOps On-Premises Support [devlake]
Tugrulhankars opened a new pull request, #9014:
URL: https://github.com/apache/devlake/pull/9014
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes.
Please fill out as many sections below as possible.
-->
### Summary
This PR introduces full support for **Azure DevOps On-Premises (Server)** in the `azuredevops_go` plugin, allowing enterprise users with self-hosted Azure DevOps instances to ingest DevOps data and compute DORA metrics.
#### Key Changes:
1. **Connection & Auth Model (`backend/plugins/azuredevops_go/models/connection.go`):**
- Added `Endpoint` and `Username` fields to support custom On-Premises base URLs and HTTP Basic Authentication.
- Updated base URL normalization to handle custom domains/IPs with subpaths (e.g. `http://<IP>/DefaultCollection`).
2. **Database Migration (`backend/plugins/azuredevops_go/models/migrationscripts/`):**
- Added migration script `20260726_add_username_to_azuredevops.go` to add `username` and `endpoint` columns to `tool_azuredevops_go_connections`.
3. **GitExtractor IIS NTLM Auth Fix (`backend/plugins/gitextractor/parser/clone_gitcli.go`):**
- Injected `-c http.extraHeader="Authorization: Basic <base64>"` during `git clone` execution. This transmits the Basic Auth header on the initial request, bypassing IIS `401 NTLM` challenges on Azure DevOps Server when authenticating via PATs.
- Abstracted `DiffLine` model to remove non-CGO libgit2 build dependencies on Windows environments.
4. **Config-UI (`config-ui/src/plugins/register/azure/config.tsx` & `utils/request.ts`):**
- Exposed `Endpoint` and `Username` fields in the Azure DevOps Go connection form.
- Fixed false-positive login redirects when remote scope connection tests return HTTP 401.
### Does this close any open issues?
Closes 8985
### Screenshots
Include any relevant screenshots here.
### Other Information
- **Backward Compatibility:** 100% backward compatible with existing Azure DevOps Cloud (`dev.azure.com`) connections.
- **Tested:** Tested and verified with live Azure DevOps Server (On-Premises) instance for data collection and Grafana DORA metric calculation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "Tugrulhankars (via GitHub)" <gi...@apache.org>.
Tugrulhankars commented on PR #9014:
URL: https://github.com/apache/devlake/pull/9014#issuecomment-5256989741
Hi maintainers 👋
I've cleaned up this PR significantly:
Rebased on latest main, all conflicts resolved
Reduced PR scope from ~40 files to 25 (removed unrelated changes like yarn.lock, docker-compose rename, Windows stubs, static plugin registration)
Translated all comments to English, removed debug code
Added 12 unit tests covering Cloud and On-Premises scenarios (all passing)
Fixed a bug where remote scopes used a hardcoded VSSPS URL that doesn't work for On-Premises
Could someone please approve the CI workflows? Happy to address any review feedback. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "Tugrulhankars (via GitHub)" <gi...@apache.org>.
Tugrulhankars commented on PR #9014:
URL: https://github.com/apache/devlake/pull/9014#issuecomment-5265211628
> > Hi @klesh 👋
> > I've cleaned up this PR significantly:
> > Rebased on latest main, all conflicts resolved Reduced PR scope from ~40 files to 25 (removed unrelated changes like yarn.lock, docker-compose rename, Windows stubs, static plugin registration) Translated all comments to English, removed debug code Added 12 unit tests covering Cloud and On-Premises scenarios (all passing) Fixed a bug where remote scopes used a hardcoded VSSPS URL that doesn't work for On-Premises Could someone please approve the CI workflows? Happy to address any review feedback. Thank you!
>
> Good work. Please fix the golint error and i will take look.
> > Hi @klesh 👋
> > I've cleaned up this PR significantly:
> > Rebased on latest main, all conflicts resolved Reduced PR scope from ~40 files to 25 (removed unrelated changes like yarn.lock, docker-compose rename, Windows stubs, static plugin registration) Translated all comments to English, removed debug code Added 12 unit tests covering Cloud and On-Premises scenarios (all passing) Fixed a bug where remote scopes used a hardcoded VSSPS URL that doesn't work for On-Premises Could someone please approve the CI workflows? Happy to address any review feedback. Thank you!
>
> Good work. Please fix the golint error and i will take look.
Thanks @klesh! I've fixed all the issues
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "Tugrulhankars (via GitHub)" <gi...@apache.org>.
Tugrulhankars commented on PR #9014:
URL: https://github.com/apache/devlake/pull/9014#issuecomment-5292571435
> Thanks for the quick response. It seems there is still issue: <img alt="image" width="1708" height="1207" src="https://private-user-images.githubusercontent.com/61080/635847687-150e1816-c258-4ebc-80cc-b9a741ee26e2.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3MDUxMzEsIm5iZiI6MTc4NjcwNDgzMSwicGF0aCI6Ii82MTA4MC82MzU4NDc2ODctMTUwZTE4MTYtYzI1OC00ZWJjLTgwY2MtYjlhNzQxZWUyNmUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODE0VDEwNTM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlYmU5MGQxYmYwYmJmMzcwN2NiMDBlYzUwNzY1MzljOWJlODU5NjQ2NDA3ZjFlOGU1OWQzYzdmZjUzMzViNzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.UJ0GlRtNESu1Ysq11buJj-YVsXm9sKs27ASnc4axKlE">
Hey @klesh, thanks for point it out! Just fixed the gofmt formatting issue in clone_gitcli.go and force-pushed the update.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh merged PR #9014:
URL: https://github.com/apache/devlake/pull/9014
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #9014:
URL: https://github.com/apache/devlake/pull/9014#issuecomment-5264493233
> Hi @klesh 👋
>
> I've cleaned up this PR significantly:
>
> Rebased on latest main, all conflicts resolved Reduced PR scope from ~40 files to 25 (removed unrelated changes like yarn.lock, docker-compose rename, Windows stubs, static plugin registration) Translated all comments to English, removed debug code Added 12 unit tests covering Cloud and On-Premises scenarios (all passing) Fixed a bug where remote scopes used a hardcoded VSSPS URL that doesn't work for On-Premises Could someone please approve the CI workflows? Happy to address any review feedback. Thank you!
Good work. Please fix the golint error and i will take look.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Azure DevOps On-Premises Support [devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #9014:
URL: https://github.com/apache/devlake/pull/9014#issuecomment-5287920434
Thanks for the quick response. It seems there is still issue:
<img width="1708" height="1207" alt="image" src="https://github.com/user-attachments/assets/150e1816-c258-4ebc-80cc-b9a741ee26e2" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org