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

Doesn't work with: Jenkins1.608 with Sauce on demand plugin 1.125

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • sauce-ondemand-plugin
    • None
    • Jenkins1.608
      Sauce on demand plugin 1.125

      It's been a while now since an update of this plugin didn't break...

      So I updated the plugin. Then the job errored out when trying to start sauce connect because if cannot find a file or directory to launch it (...myuser/sc-4.3.8-linux/bin/...sc). Unfortunately I didn't copy the text to paste it here. So I went and checked I had there all kinds of versions like sc-4.3.6-linux and lower, then some *sauceconnect*logs then a hidden ._sc-* folder and some sc-43 archives but indeed no sc-4.3.8-linux. I deleted all of those then ran the job again and that exception went away.

      Now I got this:

      Starting Sauce Connect on master node using identifier: default
      Launching Sauce Connect on ip-***
      Sauce Connect 4.3.8 now launched for: ***
      Incremented process count for ***, now 1
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at com.saucelabs.ci.BrowserFactory.getLatestWebDriverBrowserVersion(BrowserFactory.java:314)
      	at com.saucelabs.ci.BrowserFactory.webDriverBrowserForKey(BrowserFactory.java:303)
      	at hudson.plugins.sauce_ondemand.SauceEnvironmentUtil.outputWebDriverVariables(SauceEnvironmentUtil.java:44)
      	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:296)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)
      	at hudson.tasks.Ant.perform(Ant.java:144)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      	at hudson.model.Build$BuildExecution.build(Build.java:203)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:374)

      Hmm I said - another bug. Tried to work around it by unchecking the "Use latest versions of selected browsers?" checkbox from job config - sauce section. (I have there "Webdriver" checked but no browser as selenium Java code handles that later on in my job)

      Then this second error went away and I got a new one:

      Starting Sauce Connect on master node using identifier: default
      Launching Sauce Connect on ip-***
      Process count non-zero, but no active tunnels found
      Process count reset to zero
      
      FATAL: Unable to start Sauce Connect, please see the Sauce Connect log
      com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager$SauceConnectDidNotStartException: Unable to start Sauce Connect, please see the Sauce Connect log
      	at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:308)
      	at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:305)
      	at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:305)
      	at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:305)
      	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:819)
      	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:279)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:154)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:374)

      But now I can't see any sauceconnect log files in my user's home... So I'm stuck.

      Will try to revert again to plugin version 1.113 meanwhile but please fix these - I want to be able to update .

            rossrowe Ross Rowe
            costescuandrei Andrei Costescu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: