• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xvfb-plugin
    • None
    • 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

      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?

          [JENKINS-36355] Xvfb does not export DISPLAY variable

          Yuriy Burtsev created issue -
          Yuriy Burtsev made changes -
          Environment Original: Docker container with ubuntu 14.04 New: 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
          Yuriy Burtsev made changes -
          Description Original: My Jenkinsfile use Xvfb:


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

          In test I try to run xfreerdp:

          {code:java}
          xf_pre_connect: failed to open display: :0
          Please check that the $DISPLAY environment variable is properly set.
          freerdp_pre_connect failed
          {code}
          If I manually export DISPLAY variable all work perfect.
          New: My Jenkinsfile use Xvfb:


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

          In test I try to run xfreerdp:

          {code:java}
          xf_pre_connect: failed to open display: :0
          Please check that the $DISPLAY environment variable is properly set.
          freerdp_pre_connect failed
          {code}
          If I manually export DISPLAY variable all work perfect.
          May be there is a way to configure Xvfb in Jenkinsfile?
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173057 ] New: JNJira + In-Review [ 184907 ]
          Yuriy Burtsev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Yuriy Burtsev made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: