• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xvfb-plugin
    • None

      I'd like to enable the xvfb plugin for a job that may run on multiple platforms. Because the job isn't node-linked, I need a mechanism to ensure that xvfb is only launched for certain nodes but not others.

      Can you provide such a mechanism?

          [JENKINS-23155] Only run plugin under Linux

          cowwoc added a comment -

          I just got a second exception but, unlike the previous one, this one actually causes the build to fail:

          FATAL: hudson.model.labels.LabelExpression$Not cannot be cast to hudson.model.labels.LabelAtom
          java.lang.ClassCastException: hudson.model.labels.LabelExpression$Not cannot be cast to hudson.model.labels.LabelAtom
          	at jenkins.model.Jenkins.getLabelAtom(Jenkins.java:1600)
          	at hudson.model.Label.parse(Label.java:556)
          	at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:537)
          	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
          	at hudson.model.Run.execute(Run.java:1706)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:231)
          

          I got this exception when trying to run the job under OSX. Other platforms (Windows and Linux) did not get this exception. The plugin is configured to only run under Linux so I don't understand why it's triggering this failure under OSX.

          cowwoc added a comment - I just got a second exception but, unlike the previous one, this one actually causes the build to fail: FATAL: hudson.model.labels.LabelExpression$Not cannot be cast to hudson.model.labels.LabelAtom java.lang.ClassCastException: hudson.model.labels.LabelExpression$Not cannot be cast to hudson.model.labels.LabelAtom at jenkins.model.Jenkins.getLabelAtom(Jenkins.java:1600) at hudson.model.Label.parse(Label.java:556) at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:537) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1706) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) I got this exception when trying to run the job under OSX. Other platforms (Windows and Linux) did not get this exception. The plugin is configured to only run under Linux so I don't understand why it's triggering this failure under OSX.

          zregvart added a comment -

          Hi,
          what version of Jenkins are you running?

          zregvart added a comment - Hi, what version of Jenkins are you running?

          cowwoc added a comment -

          Both exceptions occur under Jenkins 1.564.

          cowwoc added a comment - Both exceptions occur under Jenkins 1.564.

          cowwoc added a comment -

          Is this a bug in Jenkins or in the xvfb plugin?

          cowwoc added a comment - Is this a bug in Jenkins or in the xvfb plugin?

          zregvart added a comment -

          Hi,
          it's most likely the way the plugin uses Jenkins's functionally, will need to dig into it and try to reproduce on 1.564.

          zregvart added a comment - Hi, it's most likely the way the plugin uses Jenkins's functionally, will need to dig into it and try to reproduce on 1.564.

          zregvart added a comment -

          Hi,
          I've created another beta (1.0.11-beta2) in the experimental plugins update center in which I basically reappropriated code from jenkins-core into the plugin. Otherwise I would have had to check under which version of Jenkins the plugin is running and act accordingly (the signature of the methods changed between versions). I've tested on 1.564 and 1.424.6 (the minimal version) seems ok. Could you test and see if it works in your environment?

          thanks

          zregvart added a comment - Hi, I've created another beta (1.0.11-beta2) in the experimental plugins update center in which I basically reappropriated code from jenkins-core into the plugin. Otherwise I would have had to check under which version of Jenkins the plugin is running and act accordingly (the signature of the methods changed between versions). I've tested on 1.564 and 1.424.6 (the minimal version) seems ok. Could you test and see if it works in your environment? thanks

          Code changed in jenkins
          User: Zoran Regvart
          Path:
          src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
          src/main/resources/org/jenkinsci/plugins/xvfb/Messages.properties
          http://jenkins-ci.org/commit/xvfb-plugin/34229d91801f058b0c1c9ee4d216a78a79fcdf2e
          Log:
          JENKINS-23155 Only run plugin under Linux (revised code for future compatibility)

          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/Messages.properties http://jenkins-ci.org/commit/xvfb-plugin/34229d91801f058b0c1c9ee4d216a78a79fcdf2e Log: JENKINS-23155 Only run plugin under Linux (revised code for future compatibility)

          zregvart added a comment -

          Hi, I've fumbled the release, now its 1.0.11-beta3, the beta2 doesn't have any changes in it ;(

          zregvart added a comment - Hi, I've fumbled the release, now its 1.0.11-beta3, the beta2 doesn't have any changes in it ;(

          cowwoc added a comment -

          1.0.11-beta3 works for me. Thank you!

          cowwoc added a comment - 1.0.11-beta3 works for me. Thank you!

          zregvart added a comment -

          Hi, I've released version 1.0.11.

          zregvart added a comment - Hi, I've released version 1.0.11.

            zregvart zregvart
            cowwoc cowwoc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: