Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get chromedriver working in pipelines

When running tests in a maven project locally, it works using `mvn test`, but when the repo was committed to bitbucket and and the pipeline launched, it errored with `/root/.m2/repository/webdriver/chromedriver/linux64/79.0.3945.36/chromedriver: error while loading shared libraries: cannot open shared object file: No such file or directory` .

The bitbucket-pipelines.yml:

  • # This is a sample build configuration for Java (Maven).
    # Check our guides at for more examples.
    # Only use spaces to indent your .yml configuration.
    # -----
    # You can specify a custom docker image from Docker Hub as your build environment.
    image: maven:3.6.3

    - step:
    - maven
    - mvn clean test # -B batch mode makes Maven less verbose


Do I need a different docker image? I don't have docker installed locally and don't know much about it to know how to create one with chromedriver, openJdk and maven installed, and I'm not 100% that's the issue either. The dependency section of the maven POM here also if that helps:

  • <!-- -->

2 answers

1 accepted

0 votes
Answer accepted

In case someone else comes across something like this, my pipeline yaml:

image: maven:3.6.3-jdk-13

- step:
- yum install -y wget
- yum install -y unzip
- sh

And created a bash shell script (the last line able) similar to

What was needed was to install chrome and chromedriver on the docker image, which the chosen image didn't have. Also, I was trying apt-get, but that's not the package manager, yum is.

You can add a service for selenium with chrome and chrome driver. There's already an existing docker image for this which you can use. No need to add necessary script for installation.



     - step:


               - <whatever cache>


               - selenium-standalone


               - <whatever script>





           image: selenium/standalone-chrome:latest

           port: 4444

The problem with this image is it does not have maven installed, and thus cannot start a maven project

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

595 views 15 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you