• fatal: unable to access 'https://github.com/eworkonlinegroup/backend_api_csharp_cicd/': error setting certificate file: C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt ##[error]Git fetch failed with exit code: 128
    • Find a working CA bundle file. You can download one from curl's official CA bundle.
    • Save it somewhere (e.g., G:\certs\cacert.pem).
    • Tell Git to use it: git config --global http.sslCAInfo “C:/certs/cacert.pem”
      • git config --global http.sslCAInfo "G:/certs/cacert.pem"

         
  • ##[error]Unhandled: No Dockerfile matching G:\DeepakDevOpsAgent\1\s\backend_api\backend_api_csharp\Dockerfile was found. self hosted agent
    • We are using self hosted here so the actual working directory at local is G:\DeepakDevOpsAgent
      • backend_api\backend_api_csharp not present at local
      • remove both in yaml file
      • dockerfile: '$(Build.SourcesDirectory)/Dockerfile'

 

  • ERROR: error during connect: Head "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/_ping": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
    • Check if Docker Desktop is running: On your self-hosted agent machine, ensure that Docker Desktop is running. You should see the Docker icon in the system tray.
    • Start Docker Desktop: If it's not running, start it.

 

  • ##[error]The process 'C:\Program Files\Docker\Docker\resources\bin\docker.exe' failed with exit code 1.
    • Docker is installed in different location so change in YAML file
      • Rely on the PATH: The Docker@2 task will use the docker command found in the system's PATH environment variable.
      • Ensure PATH is correct: correct path of docker.exe in environment PATH
      • change 
      • To

 

  • make sure docker desktop is running and logged in

 

  • ##[error]Unable to locate executable file: 'az'. Please verify either the file path exists or the file can be found within a directory 
    • Azure CLI Not Installed in the Agent Environment: Download and install it: Windows: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows
    • Restart the Agent Service:
      If the agent was already running before installing the Azure CLI, restart the self-hosted agent service so it picks up the updated environment.
    • Verify Installation and Path
      • az --version

 

 

  • ##[error]Error Code: [1] ##[error]Error: Unable to update Azure Container App via 'az containerapp update' command.
    • make sure you have both reader and writer permission in Application registration under Active Directory
    • Add Reader Permission using CLI
      • az role assignment create --assignee <application-clientid> --role Reader--scope "/subscriptions/<subscription-id>"
    • Add Writer Permission using CLI
      • az role assignment create --assignee <application-clientid> --role Contributor --scope "/subscriptions/<subscription-id>"
    • Check Permission to your application client id
      • az role assignment list --assignee <application-clientid>

 

 


Related Question