[英]ADO Pipelines Encountering Errors while installing NuGet on a self hosted build server
我正在配置 ADO 構建管道,但是它在安裝 NuGet 步驟時失敗
YAML
trigger:
- master
pool:
name: TestPool
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
我收到以下錯誤
You are using a query match on the version string. Behavior changes or breaking changes might occur as NuGet updates to a new version. ERR:Client network socket disconnected before secure TLS connection was established
根據 YAML 和錯誤消息,您似乎正在使用自托管代理和與 TLS 相關的錯誤。
由於越來越多的 Microsoft 產品/服務棄用 TLS 1.0 和 1.1,您需要確保您的應用程序能夠使用TLS 1.2正常運行。
您可以使用以下腳本來檢查 TLS 是否正常。
(Invoke-WebRequest -Uri status.dev.azure.com).StatusDescription
如果不正常,您需要在自托管代理中啟用 TLS 1.2。
並嘗試使用特定的 nuget 版本。
- task: NuGetToolInstaller@1
inputs:
versionSpec: 4.x
checkLatest: true
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.