【发布时间】:2022-09-24 02:35:46
【问题描述】:
我正在尝试使用 NuKeeper,它通过 azure 管道更新项目中的包。 但是我不断得到:
##[error]Error: Unable to locate executable file: \'git\'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
我不确定错误发生在哪里。 我已经在没有 NuKeepr 的情况下测试了管道,它很好。
我已经按照这里的步骤https://www.c-sharpcorner.com/article/automate-nuget-package-upgrade-in-azure-pipelines/
-
您使用的是自托管代理还是私人代理?
-
azure dev ops 在我们的私人服务器上,我添加了代理并通过 powershell 进行配置。所以自托管。
-
错误消息非常清楚问题是什么。请说明您尝试进行的故障排除。即您是否确保将 Git 安装在您的私有代理上并添加到
PATH环境变量中? -
PS C:\\WINDOWS\\system32> @@@@@@ cd C:\\AzureDevOpsAgents\\Agent#1 @@@@@@ PS C:\\AzureDevOpsAgents\\Agent#1> git --version @ @@@@@ git version 2.14.4.windows.2 @@@@@@ 在运行 git 命令后我得到了 git 版本
标签: azure-pipelines