windows - TeamCity 的构建代理无法找到 PowerShell

标签 windows powershell teamcity

我在 Windows 2008 R2 SP1 Core 上安装了 TC 的构建代理。服务器已安装PowerShell 2.0(仔细检查,实际上是从PS下载了TC安装)。查看一些构建配置,我发现它们与此代理不兼容,因为需要 powershell_x86/powershell_x64 。我尝试删除构建代理目录以强制升级,但没有成功。有趣的是,如果我手动将 powershell_x86powershell_x86_Path(对于 64 位)变量提供到配置文件中,一切都会正常运行。

我可以做些什么来让构建代理自动找到 PowerShell 吗?它在寻找什么/在哪里?也许“核心”有问题。

最佳答案

查看 PowerShell 插件的一些源代码 http://svn.jetbrains.org/teamcity/plugins/powershell/trunk/powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/detect/PowerShellRegistry.java它在 PowerShell 检测逻辑上提到了此页面:http://blogs.msdn.com/b/powershell/archive/2009/06/25/detection-logic-poweshell-installation.aspx 。看看那个页面,它谈到了检查注册表。也许您缺少一些注册表项。

关于windows - TeamCity 的构建代理无法找到 PowerShell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11290484/

相关文章:

windows - 检查 Electron 应用程序是否在 Windows 上以管理员权限启动

c++ - Visual Studio : how do I have the debugger stop when a member variable is modified?

java - Liquibase Windows MySQL-找不到数据库驱动程序: com. mysql.cj.jdbc.Driver

github - 为TeamCity构建配置选择Git分支

c# - TeamCity (linux) 服务器和 MSBuild

windows - 通过 Powershell 为证书的私钥分配权限 (Win 2012 R2)

c# - 从给定的字体名称获取字体文件

powershell - 获取 Azure 订阅 : Failed to refresh token. AADSTS90002

amazon-web-services - 如何将AWS S3同步输出重定向到文件?

visual-studio - 如何在没有 Visual Studio 的情况下构建 Silverlight 4 应用程序?