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

Xvfb 'specific displayname' selects a random display between 0..100, not 1..100.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The setting "Xvfb specific displayname" should select a random display from 1..100 if not specified. However, it can also select display 0, which could make the job fail if X is already running on :0.

      From log output:
      Xvfb starting$ Xvfb :0 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/2012-10-24_14-31-395902912578711360537xvfb

        Attachments

          Activity

          Hide
          zregvart zregvart added a comment -

          Hi Fredrik, I've already merged pull request made by Jeroen Van Hab (https://github.com/jenkinsci/xvfb-plugin/pull/2) and made further refinement. Now the display name is based on Jenkins executor number plus a configurable offset (1 by default). This provides uniqueness - no two executors have the same number, and one executor executes only one job at a time. The offset that is configurable can be used to separate Jenkins run Xvfbs from other Xvfb or X servers run on the same machine.

          I will release these changes in a few minutes as 1.0.4.

          Show
          zregvart zregvart added a comment - Hi Fredrik, I've already merged pull request made by Jeroen Van Hab ( https://github.com/jenkinsci/xvfb-plugin/pull/2 ) and made further refinement. Now the display name is based on Jenkins executor number plus a configurable offset (1 by default). This provides uniqueness - no two executors have the same number, and one executor executes only one job at a time. The offset that is configurable can be used to separate Jenkins run Xvfbs from other Xvfb or X servers run on the same machine. I will release these changes in a few minutes as 1.0.4.
          Hide
          zregvart zregvart added a comment -

          fixed in 1.0.4, changes in behavior are noted in the wiki (https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin)

          Show
          zregvart zregvart added a comment - fixed in 1.0.4, changes in behavior are noted in the wiki ( https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin )

            People

            Assignee:
            zregvart zregvart
            Reporter:
            frvi Fredrik Vihlborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: