-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins Version - 2.289.3
sauce-ondemand - 1.207
webdriverIO - v7
node - v12
Java - 1.8
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?