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

Jenkins is throwing a NullPointerException at SauceConnectCloser of SauceOnDemandBuildWrapper while closing and deleting the tunnel

    XMLWordPrintable

Details

    Description

      Using a Jenkins freestyle project for running automation scripts, created with JavaScript based WebdriverIO Test Automation Framework, on Jenkins.

      Recently, upgraded to latest version of sauce ondemand plugin in Jenkins.

      After updating it, the Jenkins job is getting created successfully and tests are also running completely but at closing the Sauce Connect process, Jenkins is throwing NullPointerException.

       

      Flushing Sauce Connect Input Stream
      Flushing Sauce Connect Error Stream
      Closing Sauce Connect process
      ERROR: Unable to tear down: null
      java.lang.NullPointerException
          at com.saucelabs.saucerest.SauceREST.deleteTunnel(SauceREST.java:1562)
          at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.closeTunnelsForPlan(AbstractSauceTunnelManager.java:85)
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectCloser.call(SauceOnDemandBuildWrapper.java:962)
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.tearDown(SauceOnDemandBuildWrapper.java:593)
          at hudson.model.AbstractBuild$AbstractBuildExecution.tearDownBuildEnvironments(AbstractBuild.java:553)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:517)
          at hudson.model.Run.execute(Run.java:1906)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429) 

       

      Could anyone please help and look into this issue?

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ashuwani1 Ashutosh Wani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: