Hi Zoran,

I'm sorry but it still doesn't work I think Xvfb shouldn't be started with the matrix job itself but only with every configuration - and stopped there as well. For a standalone Jenkins your current approach might work if Xvfb would not be stopped with configuration jobs (see excerpts from console log below). But as mentionend before with a master-slave setup IMHO the only way would be to start and stop Xvfb with the configuration jobs.

Cheers,
Thorsten

Output of my latest test:

Matrix job:

Xvfb starting$ /usr/bin/Xvfb :60 -screen 0 1024x768x24 -fbdir /...
[EnvInject] - Preparing an environment for the job.
[EnvInject] - Jenkins system variables are kept.
[EnvInject] - Jenkins build variables are kept.
Couldn't open RGB_DB '/usr/share/X11/rgb'
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[EnvInject] - Injecting as environment variables the properties content 
# ...
error opening security policy file /usr/lib64/xserver/SecurityPolicy
[EnvInject] - Variables injected successfully.

Deleting project workspace... done

Triggering <configuration_1>
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Couldn't open RGB_DB '/usr/share/X11/rgb'
error opening security policy file /usr/lib64/xserver/SecurityPolicy
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Couldn't open RGB_DB '/usr/share/X11/rgb'
error opening security policy file /usr/lib64/xserver/SecurityPolicy
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Triggering <configuration_2>
<configuration_2> completed with result FAILURE
Finished: FAILURE

configuration_1 (touchstone build):

gnoring Matrix job, Matrix build (the parent of this job) should have started Xvfb
[EnvInject] - Using environment variables injected by the matrix job.

Deleting project workspace... done

No emails were triggered.
[<configuration_1>] $ /bin/bash -le /tmp/hudson3288844765556768259.sh
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path '/.../<confiugration_1>/build_environment.properties'
[EnvInject] - Variables injected successfully.
# ...
# doing deployment of PHP app
# running some Jasmine smoke tests
# ...
Xvfb stopping
Archiving artifacts
# ...

configuration_2:

Ignoring Matrix job, Matrix build (the parent of this job) should have started Xvfb
[EnvInject] - Using environment variables injected by the matrix job.

Deleting project workspace... done

No emails were triggered.
[<confiugration_2>] $ /bin/bash -le /tmp/hudson4841252131230113695.sh
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path '/.../<confiugration_2>/build_environment.properties'
[EnvInject] - Variables injected successfully.
# ...
# doing deployment of PHP app
# trying to run some Jasmine smoke tests:
Call smoketest (product) for URL http://<configuration_2.domain>/
Using the ci-smoketest profile...
webkit_server: cannot connect to X server :60
F-webkit_server: cannot connect to X server :60
F

(::) failed steps (::)

# error message

1 scenario (1 failed)
2 steps (1 failed, 1 skipped)
0m30.454s
Build step 'Use builders from another project' marked build as failure
Xvfb stopping
Archiving artifacts
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to