Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Please help in setting up pipeline for bitbucket

SELVAZHAGAN December 22, 2022
Hi 

I am currently facing another issue. I am trying to configure bitbucket pipeline to execute maven project.

I am getting this error when chrome driver is trying to start. Please find the below log.



Please see https://chromedriver.chromium.org/security-considerations  for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '7251d2f4-b7b8-4700-91d8-053c93c1eccc-kbp2q', ip: '10.36.42.23', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.101', java.version: '18.0.2.1'
Driver info: driver.version: ChromeDriver

Please find below my bitbucket-pipeline.yml configurtion file.

image: markhobson/maven-chrome

pipelines:
branches:
main:
- step:
name: Build and Test
caches:
- maven
script:
- bash configure-maven.sh
- cd VuramAutomationTestingTool
- mvn compile exec:java -Dexec.cleanupDaemonThreads=false


Also please find my driver configuration code..

ChromeOptions Options = new ChromeOptions();
Options.addArguments("no-sandbox");
Options.addArguments("--disable-gpu");
Options.addArguments("--disable-dev-shm-usage");
Options.addArguments("disable-infobars");
Options.addArguments("--disable-extensions");
Options.addArguments("--headless");
Options.addArguments(new String[] { "--start-maximized" });
DesiredCapabilities Chromecapability = new DesiredCapabilities();
Chromecapability.setCapability("goog:chromeOptions", Options);
WebDriverManager.chromedriver().setup();

//owebdriver = (WebDriver)new ChromeDriver((Capabilities)Chromecapability);
owebdriver=new ChromeDriver(Options);

//owebdriver=new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), Options);
owebdriver.manage().timeouts().implicitlyWait(10L, TimeUnit.SECONDS);
this.mainwindowhandle = owebdriver.getWindowHandle();


Please help me with this issue.

Thank you

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events