-
Bug
-
Resolution: Fixed
-
Major
-
None
The setting "Xvfb specific displayname" should select a random display from 1..100 if not specified. However, it can also select display 0, which could make the job fail if X is already running on :0.
From log output:
Xvfb starting$ Xvfb :0 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/2012-10-24_14-31-395902912578711360537xvfb
[JENKINS-15608] Xvfb 'specific displayname' selects a random display between 0..100, not 1..100.
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 146364 ] | New: JNJira + In-Review [ 206220 ] |
Hi Fredrik, I've already merged pull request made by Jeroen Van Hab (https://github.com/jenkinsci/xvfb-plugin/pull/2) and made further refinement. Now the display name is based on Jenkins executor number plus a configurable offset (1 by default). This provides uniqueness - no two executors have the same number, and one executor executes only one job at a time. The offset that is configurable can be used to separate Jenkins run Xvfbs from other Xvfb or X servers run on the same machine.
I will release these changes in a few minutes as 1.0.4.