zregvart commented on Bug JENKINS-23980

Stefan,
if you specify 'Xvfb specific display number' that display number will always be used. If you specify 'Xvfb display name offset' that number will be added to the executor number and the result will be used as display name.

There is no support for variable use in the 'Xvfb specific display number', the value placed there must be a number.

The display number is never randomly generated, it can be:
1. always the same (if you specify 'Xvfb specific display number')
2. some offset from executor number (with the offset specified in 'Xvfb display name offset')
3. or, chosen by Xvfb (if you check 'Let Xvfb choose display name')

You would choose the first option if you need to use the same display number for every job. Whereas the second and third option guarantee the uniqueness of the display number.

Do note, that if you have more than one slave per physical machine you need to account for the potential overlap when using the second option. So if you have more than one slave per machine there will be an overlap if for instance two jobs are run by the first executor on slave A and the first executor on the slave B, if slaves A and B are running on the same machine. This cannot be avoided, as no data is shared between slaves. If this is your situation you can: separate the jobs with 'Restrict where this project can be run' and 'Xvfb display name offset' (in the previous example you would tie job1 to slave A and have the offset set to 100, and job2 to slave B and have the offset set to 200), use the third option, or limit the number of slaves per physical machine to one.

see https://github.com/jenkinsci/xvfb-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java#L467

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

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to