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

NullPointerException when using assignedLabels

XMLWordPrintable

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

      When trying to restrict where Xvfb is started via the assignedLabels parameter, I get an NPE.

      java.lang.NullPointerException
      	at org.jenkinsci.plugins.xvfb.Xvfb.setUp(Xvfb.java:680)
      	at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:146)
      	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE 

      The Jenkinsfile looks like this

      pipeline {
          agent any    stages {
              stage('Test') {
                  steps {
                      wrap([$class: 'Xvfb', additionalOptions: '', assignedLabels: 'linux',
                        autoDisplayName: true, displayNameOffset: 0, installationName: 'default-Xvfb', 
                        screen: '1024x768x24']) {
                          sh 'xterm'
                      }
                  }
              }
          }
      } 

      I'm using 1.1.3 of the xvfb-plugin on Jenkins 2.259

            zregvart zregvart
            jkemnade1 Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: