Teamcity的unity3d-plugin似乎看不到Unity文件夹 [英] unity3d-plugin for Teamcity seems doesn't see Unity folder

查看:135
本文介绍了Teamcity的unity3d-plugin似乎看不到Unity文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

向大家致意!

我正在尝试开始使用Teamcity Unity3d-runner-plugin. 在服务器上成功安装并设置项目中的构建步骤后 ,因此无法建立专案. 项目无法开始处理警告消息:

I'm trying to start use of Teamcity Unity3d-runner-plugin. After Successful install on server and setup build step in project , it is unable to build project. Project doesn't start to work with warning message:

警告:此构建配置未启用兼容的代理.请注册一个构建代理或调整构建配置要求.

Warning: No enabled compatible agents for this build configuration. Please register a build agent or tweak the build configuration requirements.

在代理要求"页面上,有一条消息

on the Agent Requirement page there is a message

代理(已断开连接) 不兼容的跑步者:团结 未满足的要求:unity.latest存在

agent (disconnected) Incompatible runner: Unity Unmet requirements: unity.latest exists

Unity已安装在默认文件夹中,并且可以正常工作,没有任何问题,这就是为什么我听不懂,为什么插件在代理上看不到Unity env.parameter.

Unity was installed in default folder, and works fine with no problem, that's why i can't understand, why does plugin can't see Unity env.parameter on agent.

有人知道如何解决吗?

推荐答案

消息(unity.any exists)表明它没有缺少环境变量(如果缺少%UNITY%环境变量,它将抱怨env.UNITY).相反,它似乎正在寻找名为unity.any build-agent属性.

The message (unity.any exists) suggests that it's not missing an environment variable (if it were missing a %UNITY% environment variable, it would be complaining about env.UNITY). Instead, it seems to be looking for a build-agent property called unity.any.

要在代理上定义unity.any build-agent属性,请在<agent home>/conf/buildAgent.properties处编辑代理属性文件,并添加如下一行:

To define the unity.any build-agent property on your agent, edit the agent properties file at <agent home>/conf/buildAgent.properties, adding a line like this:

unity.any=1

(在此处中了解更多.)

我猜想是谁写的插件决定,没有一种好的方法(对于TeamCity服务器)来判断Unity是否已安装在任何给定的代理程序上,因此用户(您)必须通过定义此代理程序属性来指定它.因此,通过创建该行,您可以将代理标记为已安装Unity.

I guess whoever wrote the plugin decided that there was no good way (for the TeamCity server) to tell if Unity is installed on any given agent, so the user (you) has to specify this by defining this agent property. Thus, by creating that line you're marking your agent as having Unity installed.

认为该属性文件会定期重新读取,因此您无需在添加该行后重新启动代理.

I think the properties file is reread periodically so you needn't restart the agent after you've added the line.

(如果有帮助,请查看插件的文档,并让插件作者知道此信息是否丢失.)

(If this helps, check the plugin's documentation and let the plugin author know if this information is missing.)

这篇关于Teamcity的unity3d-plugin似乎看不到Unity文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆