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

Jenkins is throwing a NullPointerException at SauceOnDemandBuildWrapper when the jobs are created using a DSL script

      • I use a DSL groovy script to create my jobs
      • The jobs are created successfully
      • When I attempt to build a job that was created by the DSL, Jenkins is throwing the below error

       

      Starting pre-build for Sauce Labs plugin
      FATAL: null
      java.lang.NullPointerException
      	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:354)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1815)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      
      • However, if I click on the configure job link, do nothing and hit save/apply, the job is building fine.
      • The sauce pre-build is successful if I save the job once manually
      • I have tons of jobs and it's not really possible to configure every job manually 

      Can someone please advise on what's going wrong here? Thanks! 

          [JENKINS-60096] Jenkins is throwing a NullPointerException at SauceOnDemandBuildWrapper when the jobs are created using a DSL script

            yfangsl Yeh Fang
            danielstephen Daniel Vergil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: