Jul 18 2022 08:42 AM
Hi All,
I am trying to git clone azure git repository in azure devops build agent
Using command line script as a stage.
Azure DevOps is On-premises and using windows build agent.
But getting the error : fatal: unable to access 'https://<devops-url>/<project-name>/_git/<repo-name>/': Failed to connect to <DevOps-url>port 443: Timed out
Please let me know on this.
Aug 15 2022 01:14 PM
@vijit-devops Hi, did you get a solution to this failed git error? I'm encountering same issue now, can yu post any solution you found useful?
Aug 16 2022 04:41 AM
Solution :
$env:http_proxy = "<http://proxy-URL>"
[net.webrequest]::defaultwebproxy = new-object net.webproxy "http://<proxy-URL>"
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true