Hi,
we have some issues with one of our jobs on our Jenkins (1.424.3 = current LTS
Version). We are using xvnc (1.10) and Sonar (1.8) plugins. The job fails
because the generated xvnc session is terminated before Sonar is started. We
tried different versions of the plugins, but the result is always the same. We
even tried to recompile the xvnc plugin from source with a different ordinal
number like:
@Extension(ordinal = 1)
public static final class DescriptorImpl extends BuildWrapperDescriptor
or:
@Extension(ordinal = 10000)
public static final class DescriptorImpl extends BuildWrapperDescriptor
but this did also change nothing in the result.
Here is the error with stack trace:
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/home/jenkins/.jenkins/jobs/JOBNAME-Sonar/workspace/JOBNAME/JOBMODULE-tile/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Can't connect to
X11 window server using ':14' as the value of the DISPLAY variable.; nested
exception is java.lang.InternalError: Can't connect to X11 window server using
':14' as the value of the DISPLAY variable.
java.lang.InternalError: Can't connect to X11 window server using ':14' as the
value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
...
[ERROR] There are test failures.
We're out of ideas right now, but it's quite important to get this running. Is
there any way to have the xvnc plugin with a X session still running when Sonar
is executed?
Any help would be greatly appreciated!
Thanks in advance.
BR,
Manuel