Child pages
  • ChromeDriver plugin
Skip to end of metadata
Go to start of metadata

Plugin Information

View chromedriver on the plugin site for more information.

This plugin auto-installs ChromeDriver to every slave.This is useful if you run Selenium tests on your Jenkins by using Google Chrome, which requires this separate platform-specific binary to be downloaded and available.

This plugin does not have any configuration. It will automatically kick in when a slave becomes online.

Changelog

Version 1.0 (Dec 21, 2011)

  • Initial version.
  • No labels

5 Comments

  1. can't get it to work. Jenkins runs in win 2003 server on system account. on using ChromeDriver i got "UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure."

    Chrome is installed for all users so it is not in %HOMEPATH%/... (is this default location Chromedriver (plugin) - looks for chrome.exe) - for system account %HOMEPATH% isn't set at all

    the Problem is setting: setCapability("chrome.binary", "\"C:
    Program Files (x86)\\Google\\Chrome\\Application\""); didn't help. Is there a way to get the exact cause of the exception? Is this a problem of finding the chrome.exe? Where chromedriver looked for it?

    i asked in selenium group: https://groups.google.com/forum/?fromgroups#!topic/selenium-users/-3LJ3wma3RE

    seem to be an Problem within this plugin?!

  2. Jenkins ver 1.546 -- I successfully created and connected to a Jenkins Slave; however, after it connected it tried to instantiate the ChromeDriver and failed:

    [] SSH Checking java version of java
    [] SSH java -version returned 1.6.0_27.
    [] SSH Starting sftp client.
    [] SSH Copying latest slave.jar...
    [] SSH Copied 346,845 bytes.
    Expanded the channel window size to 4MB
    [] SSH Starting slave process: cd '/home/webapp' && java -jar slave.jar
    <===JENKINS REMOTING CAPACITY===>channel started
    Slave.jar version: 2.33
    This is a Unix slave
    Evacuated stdout
    Installing chromedriver to /home/webapp/tools/chromedriver
    ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins.
    java.lang.NullPointerException
    at org.jenkinsci.plugins.chromedriver.DownloadableImpl.getType(DownloadableImpl.java:91)
    at org.jenkinsci.plugins.chromedriver.DownloadableImpl.select(DownloadableImpl.java:78)
    at org.jenkinsci.plugins.chromedriver.DownloadableImpl.resolve(DownloadableImpl.java:35)
    at org.jenkinsci.plugins.chromedriver.ComputerListenerImpl.process(ComputerListenerImpl.java:43)
    at org.jenkinsci.plugins.chromedriver.ComputerListenerImpl.preOnline(ComputerListenerImpl.java:34)
    at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:471)
    at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:345)
    at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:695)
    at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:489)
    at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
    [] SSH Connection closed.
    ERROR: Connection terminated
    java.io.IOException: Unexpected termination of the channel
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
    Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    at hudson.remoting.Command.readFrom(Command.java:92)
    at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    ERROR: [] slave agent was terminated
    java.io.IOException: Unexpected termination of the channel
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
    Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    at hudson.remoting.Command.readFrom(Command.java:92)
    at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

  3. I can't find much documentation on this - can you confirm which version of chromedriver is installed? We have plugin Chromedriver version 1.1 installed, and this downloads chromedriver v2.9.248304 by default. There doesn't seem to be any config to override this. We'd now like to use the latest version of chrome driver - is there a way to get the plugin to download the latest version?

    1. I patched the chromedriver downloader to download the latest version (there was a bug making it stuck on version 2.9), so the latest chromedriver version should be downloaded in a couple days when the change has propogated through the mirrors and to your system.

  4. is there a work around to change the latest version to another older one or newer?
    i have encounter in this issue when using windows slave JNLP as a windows service, that i need to run with new chrome driver version,
    but master Jenkins (version 2.0) always install same chrome driver version (2.26) in all windows salves that i don't need.
    i need master to install the latest ChromeDriver 2.29