Not able to start Selenium server through Jenkins

0

I have a Jenkins job through which I am running .bat file to configure webdriver-manager and start webdriver-mananger. I have taken care of proxy settings and all. The issue is When I run the job, I get below error. Selenium server starting but with error. Due to which when I run the BDD test I get an error that chromedriver not known.

04:59:31 '' Start server" 04:59:31 webdriver-manager: using global installed version 12.1.7 04:59:32 { Error: getaddrinfo ENOTFOUND chromedriver.storage.googleapis.com chromedriver.storage.googleapis.com:443 04:59:32 at errnoException (dns.js:28:10) 04:59:32 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26) 04:59:32 code: 'ENOTFOUND', 04:59:32 errno: 'ENOTFOUND', 04:59:32 syscall: 'getaddrinfo', 04:59:32 hostname: 'chromedriver.storage.googleapis.com', 04:59:32 host: 'chromedriver.storage.googleapis.com', 04:59:32 port: 443 } 04:59:32 [09:59:32] I/start - java -Dwebdriver.gecko.driver=C:\npm-modules\node_modules\webdriver-manager\selenium\geckodriver-v0.25.0.exe -jar C:\npm-modules\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.141.59.jar -port 4444 04:59:32 [09:59:32] I/start - seleniumProcess.pid: 3684 04:59:32 09:59:32.407 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358 04:59:32 09:59:32.503 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444 04:59:32 2019-10-01 09:59:32.554:INFO::main: Logging initialized @372ms to org.seleniumhq.jetty9.util.log.StdErrLog 04:59:33 09:59:32.860 INFO [WebDriverServlet.] - Initialising WebDriverServlet 04:59:33 09:59:33.047 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444***

But if I login to that machine and then run the .bat file through cmd, I dont get any error and able to start selenium server and also able to run the BDD test.

Any help on this will be appreciated. Am struggling since long on this issue!!

Thanks.

user1097312

Posted 2019-10-03T16:59:26.197

Reputation: 1

No answers