简体   繁体   English

TFS(本地)构建代理(本地)在作为服务运行时未找到 Visual Studio 2017 功能

[英]TFS(On-Prem) Build Agent(On-Prem) Not Finding Visual Studio 2017 Capability While Running As Service

Microsoft Visual Studio Team Foundation Server - Version 16.131.28106.2 Microsoft Visual Studio Team Foundation Server - 版本 16.131.28106.2
Agent.OS Windows_NT Agent.OS Windows_NT
Agent.OSVersion 6.3.9600 Agent.OSVersion 6.3.9600
Agent.Version 2.136.1代理版本 2.136.1

My TFS build agent is not identifying Visual Studio 2017(Enterprise) as a capability while running as a service(under a service account on my primary domain).我的 TFS 构建代理在作为服务运行时(在我的主域上的服务帐户下)未将 Visual Studio 2017(企业)识别为一项功能。 That same agent does identify Visual Studio 2015 as a capability while running as a service under the same account as above.同样的代理程序识别的Visual Studio 2015年的能力,同时为同一个帐户在如以上服务运行。

I've updated the agent, removed and reconfigured the build agent in question, restarted the agent-service, and restarted the OS.我已经更新了代理,删除并重新配置了有问题的构建代理,重新启动了代理服务,并重新启动了操作系统。 I did notice that when this agent is first configured, the capability is briefly identified while the agent runs under the individual running the configure script, but when the agent switches over to running under the service account, the VS2017 capabilities disappear.确实注意到,当第一次配置这个代理时,当代理在运行配置脚本的个人下运行时,功能会被简要识别,但是当代理切换到在服务帐户下运行时,VS2017 功能消失了。

After noticing this, I gave the service account in question read and execute privileges on the root Windows install dir, 'Program Files (x86), and all directories and files associated with the VS2017 install, but this didn't help.注意到这一点后,我给了有问题的服务帐户读取和执行根 Windows 安装目录、'Program Files (x86) 以及与 VS2017 安装相关的所有目录和文件的权限,但这没有帮助。

If I run a different build agent interactively(same version as listed above), VS2017 is identified as a capability, so I'm assuming there is something I need to do in regards to the service account I'm attempting to use.如果我以交互方式运行不同的构建代理(与上面列出的版本相同),VS2017 被标识为一种功能,所以我假设我需要对我尝试使用的服务帐户做一些事情。

For good measure, within the Visual Studio build task, I tried using the 'latest' option and the 'Visual Studio 2017' options.为了更好地衡量,在 Visual Studio 构建任务中,我尝试使用“最新”选项和“Visual Studio 2017”选项。 I also tried adding '/p:VisualStudioVersion=15.0' to the MSBuild args for this task.我还尝试将 '/p:VisualStudioVersion=15.0' 添加到此任务的 MSBuild 参数中。

Update: I also tried explicitly specifying the capabilities directly in the 'User-Defined' section, and I tried adding the capabilities through the use of environment variables on the agent host.更新:我还尝试直接在“用户定义”部分中明确指定功能,并尝试通过在代理主机上使用环境变量来添加功能。

Have you ensured that the service account user is added as the role service account on the pool the agent is running on?您是否确保将服务帐户用户添加为运行代理的池中的角色服务帐户? Also ensure that the service account is able to do the following in these Local Security Policies: "logon as a service", "act as part of the operating system", "Manage auditing and security log"还要确保服务帐户能够在这些本地安全策略中执行以下操作:“作为服务登录”、“作为操作系统的一部分”、“管理审核和安全日志”

I can't say that this will be able to solve your problem, but I just know that these are necessary in the setups I handle.我不能说这将能够解决您的问题,但我只知道这些在我处理的设置中是必要的。

You could also for quick and easy test add you service account as an administrator on the machine and test if it finds VS 2017 then.您还可以为了快速简便的测试,将您的服务帐户添加为机器上的管理员,然后测试它是否找到了 VS 2017。 If it does, then you know you need to set some specific groups and permissions.如果是这样,那么您就知道需要设置一些特定的组和权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TFS构建/发布代理“更新所有代理”并未更新2017年TFS内部代理 - TFS build/release agents “update all agents” is not updating the agents for TFS on-prem 2017 是否可以为本地TFS 2018设置代理发布代理? - Is it possible to setup a proxy release agent for on-prem TFS 2018? TFS2017本地-构建网页空白并且图像不显示 - TFS2017 On-Prem - Build Web page is blank & images not showing 使用旧版本 NuGet.exe 的 TFS On-Prem 构建代理 - TFS On-Prem Build Agent Using Old Version Of NuGet.exe 导入工作项类型定义时,TFS 2017(本地)中的ProvisioningImportEventsCallback - ProvisioningImportEventsCallback in TFS 2017(on-prem) when importing work item type definition TFS 2017在Prem Agent Service工作文件夹上的数量递增 - TFS 2017 on Prem Agent Service work folder number increments 将代码从VSTS存储库推送到本地TFS? - Push code from VSTS repository to on-prem TFS? JetBrains Rider - 连接到本地 TFS 时出错 - JetBrains Rider - errors when connecting to on-prem TFS REST API上的TFS 2015内部部署许可问题 - TFS 2015 on-prem licensing issue on REST API 如何在本地TFS中删除Git仓库 - How do I remove a Git repo in TFS on-prem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM