2

I have strange problem - I wanted to use xvnc jenkins plugin because of karma tests for browsers like Chrome, Firefox etc...

But there is problem with running vncserver while building. Console output:

Starting xvnc
[workspace] $ vncserver :51 -localhost -nolisten tcp
/usr/bin/env: perl: No such file or directory

this is repeated several times and last output is

FATAL: Failed to run 'vncserver :61 -localhost -nolisten tcp' (exit code 127), blacklisting display #61; consider checking the "Clean up before start" option

I can understand the problem is that jenkins cannot find Perl but it is really weird because when I run env perl it works (even as a jenkins user).

What am I doing wrong?

Thanks

jreh
  • 600
  • 1
  • 6
  • 16
  • 3
    PATH not setup as desired when run from Jenkins? – ikegami Jan 29 '15 at 17:20
  • 1
    @ikegami speaks wisdom. – Len Jaffe Jan 29 '15 at 17:33
  • Sorry for very late reply, I thought it can be PATH but when I execute env command in task I get this PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games which looks ok in my opinion, I can also run env perl without any problem – jreh Feb 03 '15 at 07:48

1 Answers1

1

For me this occurs when the NodeJS and Xvnc plugins are enabled during the same build.

I've reported this in JENKINS-28578.

David Pärsson
  • 6,038
  • 2
  • 37
  • 52