XVFB on Jenkins connecting to wrong display. Display shows black screen
问题 I am trying to execute headless chrome Selenium tests via Jenkins using XVFB on UBUNTU AWS/VM. My Jenkins XVFB config is: Pre-build Execute Shell: export DISPLAY=:98 x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :98 -auth /var/run/lightdm/root/:0 -rfbport 5900 When build starts, I see: Xvfb starting$ /usr/bin/Xvfb :98 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/xvfb-82-..fbdir10942188934689457655 [Jenkins-Headless] $ /bin/sh -xe /tmp/jenkins11502774511620101086.sh + export DISPLAY=