先看stackoverflow的答案
- Log in using the GUI session and run Jenkins in a terminal window by typing
java -jar /path/to/jenkins.war
. When Jenkins is started in the GUI context, any processes started by Jenkins are able to talk to the GUI system and draw windows.
意思就是,如果你用的jenkins是注册成为windows服务的,也就是下载的是jenkins.msi,由此配置的jenkins都是不会调用GUI,也就相当于“静默模式”。解决方案如下:
方法一:
1. 打开windows服务窗口(win+r 输入‘services.msc’)
2. 找到Jenkins服务
a). 停止此服务
b). 将启动类型由自动->手动
3. 找到Jenkins安装目录里的jenkins.war,在cmd窗口运行 java -jar C:apache-tomcat-7.0.53webappsjenkins.war Done
需要先停止。执行第3步后Jenkins重新安装,原先的Job、配置、插件都没有了
Ps:不需要配置Path,能获取的配置的用户Path
1. 卸载Jenkins
2. http://jenkins-ci.org/ 下载war包
3. 在cmd窗口运行 java -jar C:apache-tomcat-7.0.53webappsjenkins.war Done
转载地址:xxxxx