Jenkins Xvnc报错

[Host_Regression_easytest] $ vncserver :62

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:FATAL: Failed to run 'vncserver :62' (exit code 1), blacklisting display #62; consider checking the "Clean up before start" option
java.io.IOException: Failed to run 'vncserver :62' (exit code 1), blacklisting display #62; consider checking the "Clean up before start" option
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73)
	at hudson.model.Build$BuildExecution.doRun(Build.java:154)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
	at hudson.model.Run.execute(Run.java:1488)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:236)
 
 
解决方法:
在job执行的所在服务器上(job执行有可能是在master上,有可能在slave上运行),执行如下步骤:
  
  
  
  
  • 首先运行vncserver命令
  • 然后提示输入密码,你随便输入一个密码
  • 建立好了,再kill掉这个vnc session即可。(例如“vncserver -kill :1”)

你可能感兴趣的:(Jenkins Xvnc报错)