Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36355

Xvfb does not export DISPLAY variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xvfb-plugin
    • Labels:
      None
    • Environment:
      Docker container with ubuntu 14.04
      apt-get install -y xvfb xfonts-100dpi xfonts-75dpi xfonts-cyrillic xorg dbus-x11
      apt-get install -y freerdp-x11
    • Similar Issues:

      Description

      My Jenkinsfile use Xvfb:

      ...
              parallel(
                  intTests: {
                      sh "mvn -B install -P intTests"
                  }, funcTests: {
                      wrap([$class: 'Xvfb']) {
                          sh "mvn -B install -PfuncTests"
                      }
                  }, failFast: false
              )
      ...
      

      In test I try to run xfreerdp:

      xf_pre_connect: failed to open display: :0
      Please check that the $DISPLAY environment variable is properly set.
      freerdp_pre_connect failed
      

      If I manually export DISPLAY variable all work perfect.
      May be there is a way to configure Xvfb in Jenkinsfile?

        Attachments

          Activity

            People

            Assignee:
            zregvart zregvart
            Reporter:
            burtsevyg Yuriy Burtsev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: