Files
cmdb-insight/docs/AZURE-PIPELINE-REPO-TROUBLESHOOTING.md
Bert Hausmans cdee0e8819 UI styling improvements: dashboard headers and navigation
- Restore blue PageHeader on Dashboard (/app-components)
- Update homepage (/) with subtle header design without blue bar
- Add uniform PageHeader styling to application edit page
- Fix Rapporten link on homepage to point to /reports overview
- Improve header descriptions spacing for better readability
2026-01-21 03:24:56 +01:00

6.4 KiB

Azure DevOps Pipeline - Repository Not Found

🔴 Probleem: "No matching repositories were found"

Als Azure DevOps je repository niet kan vinden bij het aanmaken van een pipeline, probeer deze oplossingen:


Oplossing 1: Check Repository Naam

Probleem: De repository naam komt mogelijk niet overeen.

Oplossing:

  1. Ga naar Repos (links in het menu)

  2. Check de exacte repository naam

    • Kijk naar de repository die je hebt gepusht
    • Noteer de exacte naam (inclusief hoofdletters/spaties)
  3. In de pipeline wizard:

    • Zoek naar de repository met de exacte naam
    • Of probeer verschillende variaties:
      • CMDB Insight
      • cmdb-insight
      • ZuyderlandCMDBGUI

Jouw repository naam zou moeten zijn: CMDB Insight (met spaties)


Oplossing 2: Check Repository Type

In de pipeline wizard, probeer verschillende repository types:

  1. Azure Repos Git (als je code in Azure DevOps staat)

    • Dit is waarschijnlijk wat je nodig hebt
    • Check of je repository hier staat
  2. GitHub (als je code in GitHub staat)

    • Niet van toepassing voor jou
  3. Other Git (als je code ergens anders staat)

    • Niet van toepassing voor jou

Voor jouw situatie: Kies "Azure Repos Git"


Oplossing 3: Check Repository Toegang

Probleem: Je hebt mogelijk geen toegang tot de repository.

Oplossing:

  1. Ga naar Repos (links in het menu)
  2. Check of je de repository ziet
    • Als je de repository niet ziet, heb je mogelijk geen toegang
  3. Check permissions:
    • Project Settings → Repositories → Security
    • Check of je account toegang heeft

Oplossing 4: Check Project

Probleem: Je bent mogelijk in het verkeerde project.

Oplossing:

  1. Check het project naam (bovenaan links)
    • Moet zijn: "cmdb"
  2. Als je in een ander project bent:
    • Klik op het project dropdown (bovenaan links)
    • Selecteer "cmdb"
  3. Probeer opnieuw de pipeline aan te maken

Oplossing 5: Refresh/Herlaad

Soms helpt een simpele refresh:

  1. Refresh de browser pagina (F5 of Cmd+R)
  2. Sluit en open opnieuw de pipeline wizard
  3. Probeer opnieuw

Oplossing 6: Check of Repository Bestaat

Probleem: De repository bestaat mogelijk niet in Azure DevOps.

Oplossing:

  1. Ga naar Repos (links in het menu)
  2. Check of je repository zichtbaar is
    • Je zou moeten zien: CMDB Insight (of jouw repo naam)
  3. Als de repository niet bestaat:
    • Je moet eerst de code pushen naar Azure DevOps
    • Of de repository aanmaken in Azure DevOps

Check of je code al in Azure DevOps staat:

  • Ga naar Repos → Files
  • Je zou je code moeten zien (bijv. azure-pipelines.yml, backend/, frontend/, etc.)

Oplossing 7: Maak Repository Aan (Als Die Niet Bestaat)

Als de repository nog niet bestaat in Azure DevOps:

Optie A: Push Code naar Bestaande Repository

Als de repository al bestaat maar leeg is:

  1. Check de repository URL:

    git@ssh.dev.azure.com:v3/ZuyderlandMedischCentrum/cmdb/cmdb-insight
    
  2. Push je code:

    cd /Users/berthausmans/Documents/Development/cmdb-insight
    git push azure main
    
  3. Check in Azure DevOps:

    • Ga naar Repos → Files
    • Je zou je code moeten zien

Optie B: Maak Nieuwe Repository Aan

Als de repository helemaal niet bestaat:

  1. Ga naar Repos (links in het menu)
  2. Klik op "New repository" of het "+" icoon
  3. Vul in:
    • Repository name: CMDB Insight
    • Type: Git
  4. Create
  5. Push je code:
    cd /Users/berthausmans/Documents/Development/cmdb-insight
    git remote add azure git@ssh.dev.azure.com:v3/ZuyderlandMedischCentrum/cmdb/cmdb-insight
    git push azure main
    

Oplossing 8: Gebruik "Other Git" Als Workaround

Als niets werkt, gebruik "Other Git" als tijdelijke oplossing:

  1. In de pipeline wizard:
    • Kies "Other Git" (in plaats van "Azure Repos Git")
  2. Vul in:
    • Repository URL: git@ssh.dev.azure.com:v3/ZuyderlandMedischCentrum/cmdb/cmdb-insight
    • Of HTTPS: https://ZuyderlandMedischCentrum@dev.azure.com/ZuyderlandMedischCentrum/cmdb/_git/cmdb-insight
  3. Branch: main
  4. Continue

⚠️ Let op: Dit werkt, maar "Azure Repos Git" is de voorkeursoptie.


🔍 Diagnose Stappen

Om te diagnosticeren wat het probleem is:

1. Check of Repository Bestaat

  1. Ga naar Repos (links in het menu)
  2. Check of je CMDB Insight ziet
  3. Klik erop en check of je code ziet

2. Check Repository URL

In Terminal:

cd /Users/berthausmans/Documents/Development/cmdb-insight
git remote -v

Je zou moeten zien:

azure	git@ssh.dev.azure.com:v3/ZuyderlandMedischCentrum/cmdb/cmdb-insight (fetch)
azure	git@ssh.dev.azure.com:v3/ZuyderlandMedischCentrum/cmdb/cmdb-insight (push)

3. Check of Code Gepusht is

In Terminal:

git log azure/main --oneline -5

Als je commits ziet: Code is gepusht
Als je een fout krijgt: Code is niet gepusht

4. Push Code (Als Niet Gepusht)

git push azure main

💡 Aanbevolen Aanpak

Probeer in deze volgorde:

  1. Check Repos - Ga naar Repos en check of je repository bestaat
  2. Check project naam - Zorg dat je in "cmdb" project bent
  3. Refresh pagina - Soms helpt een simpele refresh
  4. Push code - Als repository leeg is, push je code
  5. Gebruik "Other Git" - Als workaround

🎯 Quick Fix (Meest Waarschijnlijk)

Het probleem is waarschijnlijk dat de repository leeg is of niet bestaat:

  1. Check in Azure DevOps:

    • Ga naar ReposFiles
    • Check of je code ziet (bijv. azure-pipelines.yml)
  2. Als repository leeg is:

    cd /Users/berthausmans/Documents/Development/cmdb-insight
    git push azure main
    
  3. Probeer opnieuw de pipeline aan te maken


📚 Meer Informatie


🆘 Nog Steeds Problemen?

Als niets werkt:

  1. Check of je in het juiste project bent (cmdb)
  2. Check of de repository bestaat (Repos → Files)
  3. Push je code naar Azure DevOps
  4. Gebruik "Other Git" als workaround

De "Other Git" optie werkt altijd, ook als de repository niet wordt gevonden in de dropdown.