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

Xvfb plugin doesn't work on matrix jobs with slaves on the same machine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Component/s: xvfb-plugin
    • Labels:
      None
    • Environment:
      linux
    • Similar Issues:

      Description

      In our jenkins configuration we have several slaves on the same linux server and we have some jobs that run on these slaves.

      Because each slave has just a single executor, when we try to run the job with Xvfb plugin, all slaves try to run with the same display and therefore fail.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Zoran Regvart
          Path:
          src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
          src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/config.jelly
          src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/help-useNodeOffsets.html
          http://jenkins-ci.org/commit/xvfb-plugin/61ca30dec1da9e4f2cef85b995f0806f35a66b7c
          Log:
          JENKINS-18607 Xvfb plugin doesn't work on matrix jobs with slaves on the
          same machine

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Zoran Regvart Path: src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/config.jelly src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/help-useNodeOffsets.html http://jenkins-ci.org/commit/xvfb-plugin/61ca30dec1da9e4f2cef85b995f0806f35a66b7c Log: JENKINS-18607 Xvfb plugin doesn't work on matrix jobs with slaves on the same machine
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Zoran Regvart
          Path:
          src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
          src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/config.jelly
          src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/help-useNodeOffsets.html
          http://jenkins-ci.org/commit/xvfb-plugin/2b652cd0785a4bb09f98bac0319811b0aa87aad6
          Log:
          Revert "JENKINS-18607 Xvfb plugin doesn't work on matrix jobs with slaves on the"

          This reverts commit 61ca30dec1da9e4f2cef85b995f0806f35a66b7c.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Zoran Regvart Path: src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/config.jelly src/main/resources/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper/help-useNodeOffsets.html http://jenkins-ci.org/commit/xvfb-plugin/2b652cd0785a4bb09f98bac0319811b0aa87aad6 Log: Revert " JENKINS-18607 Xvfb plugin doesn't work on matrix jobs with slaves on the" This reverts commit 61ca30dec1da9e4f2cef85b995f0806f35a66b7c.
          Hide
          zregvart zregvart added a comment -

          There is a new option for the Xvfb plugin that uses the -displayfd option of the Xvfb. This basically lets the Xvfb to pick its own display name and returns it via stderr to the Xvfb Jenkins plugin. In this case Xvfb tries to find a free display name by scanning for a free one.

          With this feature there is no need for the plugin to scan for a free display name, as this is done by Xvfb.

          Show
          zregvart zregvart added a comment - There is a new option for the Xvfb plugin that uses the -displayfd option of the Xvfb. This basically lets the Xvfb to pick its own display name and returns it via stderr to the Xvfb Jenkins plugin. In this case Xvfb tries to find a free display name by scanning for a free one. With this feature there is no need for the plugin to scan for a free display name, as this is done by Xvfb.
          Hide
          zregvart zregvart added a comment -

          Just to note that in order to use this new feature there is a beta version available in the experimental update site (http://updates.jenkins-ci.org/experimental/update-center.json). See http://jenkins-ci.org/node/439 for instructions on how to setup.

          Show
          zregvart zregvart added a comment - Just to note that in order to use this new feature there is a beta version available in the experimental update site ( http://updates.jenkins-ci.org/experimental/update-center.json ). See http://jenkins-ci.org/node/439 for instructions on how to setup.
          Hide
          zregvart zregvart added a comment -

          Closing resloved issues

          Show
          zregvart zregvart added a comment - Closing resloved issues

            People

            Assignee:
            zregvart zregvart
            Reporter:
            taksan taksan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: