문제

Trying to get some jobs working that require xvnc, but get this:

  Starting xvnc
  [workspace] $ vncserver :14
  vncserver: The HOME environment variable is not set.

I have no problems with running vncserver from the jenkins user on command line. (aside: 'printenv' shows the HOME variable is populated correctly when on the command line, but not from within a jenkins job).

I am running Ubuntu 11.10.

도움이 되었습니까?

해결책 2

Go into: /etc/init/jenkins.conf

Add the following line to the bottom of the env list.

env HOME="/var/lib/jenkins"

restart jenkins, enable the xvnc in your build, and then it will work.

다른 팁

Edit /etc/init.d/jenkins on the server to set HOME environment variable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top