[英]How Azure pipelines can get source from Internal TFS and External Git? How can I update the proxy?
我正在設置 Azure 管道,我很少從 GitHub 獲取源並嘗試設置管道以到達 Intranet 上的 TFS,我使用此其他 Git URL 創建了一個類型為“Azure Repos/Team Foundation Server”的服務連接: https://tfs.myCie.com/defaultcollection/MyProject/_versionControl
當我運行管道時,它需要一些時間然后顯示 504 超時錯誤,但管道仍處於掛起狀態。 過了一會兒,它在步驟“ Checkout repository@master to s
”中出現此消息錯誤:
git -c http.proxy="http://myProxy.myCie.com:80" fetch --force --tags --prune --progress --no-recurse-submodules origin
fatal: unable to access 'https://tfs. myCie.com/defaultcollection/myProject/_versionControl/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to tfs.oecd.org:443
##[warning] Git fetch failed with exit code 128, back off 3.667 seconds before retry.
安全團隊說我應該使用 PAC 文件來設置代理,並且應該啟用 Intranet 和 Internet 呼叫,但我看不到如何更新我的自托管 Windows 代理的代理設置。
我可以指定一個文件嗎? 可以有一個用於 Internet 的配置和另一個用於 Intranet 的配置?
我看不到如何更新自托管 Windows 代理的代理設置。 我可以指定一個文件嗎?
對於代理,您需要在代理的根目錄中創建一個帶有代理 URL 的 .proxy 文件。
找到構建代理的根目錄(這是包含 run.exe 和 _work 文件夾的文件夾)。
在此位置打開命令提示符。
鍵入此命令,但將PROXYIP & PORT
替換為您的值:
echo http://PROXYIP:PORT > .proxy
檢查您的 .proxy 文件是否在正確的位置創建:
可選:如果您的代理需要身份驗證,您必須設置這些環境變量:
set VSTS_HTTP_PROXY_USERNAME=user set VSTS_HTTP_PROXY_PASSWORD=password
為您的構建代理重新啟動服務。
當您在安裝時知道需要代理時,您可以在調用 config.cmd 時配置代理設置:
./config.cmd --proxyurl http://127.0.0.1:8888 --proxyusername "user" --proxypassword "password"
有關詳細信息,請參閱此博客。
這里是官方文檔,大家可以參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.