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

How to set default xvfb installation?


    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • xvfb-plugin
    • None
    • Jenkins 1.651.2

      See http://stackoverflow.com/questions/33815008/how-to-configure-xvfb-default-installation-on-jenkins-startup

      I am using groovy scripts copied to /usr/share/jenkins/ref/init.groovy.d/ to do the initial setup of a Docker Jenkins instance. Later I create jobs using the Job DSL Plugin that require Xvfb.

      I can't figure out how to initialize a "default" installation of Xvfb using groovy scripts. I have a work-around where I put a copy of org.jenkinssci.plugins.xvfb.XvfbBuildWrapper.xml and then in the groovy scripts I have one script that runs "Jenkins.instance.doReload()". This broke when I upgraded from 1.0.6 to 1.1.3 since the format of the xml file changed.

      What is the right way to script the creation of a default Xvfb installation?

            zregvart zregvart
            chris_hubbard Chris Hubbard
            0 Vote for this issue
            2 Start watching this issue