Jenkins无法连接到窗口服务器-权限不足 [英] Jenkins can't connect to window server - not enough permissions
问题描述
我刚刚在本地安装了Jenkins服务器,以便使用Selenium Webdriver执行一些测试.
I've just installed at local a Jenkins server in order to execute some tests using Selenium Webdriver.
当我执行测试时,最初的步骤执行得很好(Maven调用,对仓库的访问...),但是当必须执行第一步硒时,会出现此错误:
When I execute the tests, the initial steps are executing well (maven calls, access to repo,...) but when the first selenium step have to be executed, I get this error:
(java.lang.InternalError: Can't connect to window server - not enough permissions.)
指的是什么权限?
我正在MacOSX中从我的主要用户执行我的计算机. 我在jenkins网站和google中查看过信息,但是我什么都可以得到.
I'm executing from my main user in my computer in a MacOSX. I've looked information in jenkins site and google, but I can get anything.
推荐答案
添加JVM选项-Djava.awt.headless=true
在我使用的实例上,"JVM选项"字段仅在启动方法"子标题下的高级..."按钮中可见.
On the instance I use, the "JVM Options" field is only visible from the "Advanced..." button under the Launch Method sub-heading.
这篇关于Jenkins无法连接到窗口服务器-权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!