microsoft / azure-pipelines-vscode

VS Code extension for working with Azure Pipelines YAML files
MIT License
163 stars 102 forks source link

Github Enterprise Server - Couldn't get repository details #551

Open coolhome opened 11 months ago

coolhome commented 11 months ago

Steps to reproduce:

  1. Use Github Enterprise Server (not Github Enterprise) as your repository source
  2. Azure: Sign In
  3. Azure Pipelines: Configure Pipeline
  4. No prompts just an error:
    Couldn't get repository details. Ensure your repo is hosted on [Azure Repos](https://docs.microsoft.com/azure/devops/repos/get-started) or [GitHub](https://guides.github.com/activities/hello-world/).

Azure Pipeline Logs

(10/13/2023, 1:06:00 PM) [SchemaDetection] Detecting schema for workspace folder <redacted>
(10/13/2023, 1:06:00 PM) [SchemaDetection] Found remote URL for <redacted>: git@<redacted>:<redacted>/<redacted>.git
(10/13/2023, 1:06:00 PM) [SchemaDetection] <redacted> has no remote URL or is not an Azure repo
(10/13/2023, 1:06:00 PM) [SchemaDetection] Using cached information for <redacted>: <redacted>, <redacted>
(10/13/2023, 1:06:01 PM) [SchemaDetection] Retrieving schema for <redacted>
(10/13/2023, 1:06:01 PM) [SchemaDetection] User is not eligible for enhanced 1ESPT Schema Intellisense.
(10/13/2023, 1:06:01 PM) [SchemaDetection] Returning cached schema for <redacted>
(10/13/2023, 1:06:01 PM) [SchemaDetection] Detected schema for workspace folder <redacted>: /C:/Users/<redacted>/AppData/Roaming/Code/User/globalStorage/ms-azure-devops.azure-pipelines/<redacted>-schema.json
(10/13/2023, 1:06:13 PM) Couldn't get repository details. Ensure your repo is hosted on [Azure Repos](https://docs.microsoft.com/azure/devops/repos/get-started) or [GitHub](https://guides.github.com/activities/hello-world/).

VSCode Information

Version: 1.83.0 (system setup) Commit: e7e037083ff4455cf320e344325dacb480062c3c Date: 2023-10-03T16:12:16.321Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

Azure Pipelines Extension: v1.228.0

DmitriiBobreshev commented 11 months ago

Hi @coolhome, Thank you for reporting this issue, we will take a look.

50Wliu commented 11 months ago

As the message notes, this is expected - only repos hosted on dev.azure.com and github.com are supported at this time. (Part of the reason why self-hosted instances aren't supported yet is because we would need to start sending HTTP requests to probe what service it is, whereas right now we can just look at the clone URL.)

aluevano commented 5 months ago

Message is displayed also on dev.azure.com instances as well.