-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.28
Xvfb plugin 1.1.3
Using the following example pipeline
stage('stage_1') { parallel ( 's_1_1': { node() { wrap([$class: 'Xvfb']) { sh 'sleep 10' } } }, 's_1_2': { node() { wrap([$class: 'Xvfb']) { sh 'sleep 10' } } } ) }
the Xvfb binary is always invoked with ":0" as screen name, even if the documentation suggests the screen name should match the executor number + offset.
Manually specifying displayNameOffset has no effect.
The only way to make it work in parallel is by setting autoDisplayName, but we've experienced random failures with that option too. It would be great for the default behavior to allow parallel jobs without any manual configuration.
[JENKINS-39415] Xvfb in a parallel pipeline doesn't use the executor number as display name
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Closed [ 6 ] |
Creating a freestyle job, enabling Xvfb with default options and triggering two concurrent runs of the job has the expected behavior - the screen name matches the executor number.