建立统一的项目与詹金斯失败 [英] Build Unity project with Jenkins failed

查看:143
本文介绍了建立统一的项目与詹金斯失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立统一项目,詹金斯在Mac OS服务器。 但是,当我尝试运行下面的脚本

I'm trying to build Unity project with Jenkins on Mac OS Server. But when I try to run the following script

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode ${PROJECT_PATH} -executeMethod BuildScript.DevelopmentBuild

该脚本显示了这一点,

The script shows this,

_RegisterApplication(),未能建立默认连接WindowServer,_CGSDefaultConnection()为NULL。

_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.

有谁知道如何解决这个问题呢?

Does anyone knows how to fix the problem?

推荐答案

尝试从终端写:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/org.jenkins-ci.plist

然后注销并重新登录。

Then log out and log in again.

现在詹金斯将运行的代理,并且可以访问WindowServer。

Now Jenkins will run as agent and can access WindowServer.

这篇关于建立统一的项目与詹金斯失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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