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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,035
Community Members
 
Community Events
185
Community Groups

Is it Possible to Install Firefox in Pipeline with Maven 3.6.3 Image

Edited

Hello, I am trying to run Selenium tests in a pipeline. It is using Maven 3.6.3 as its Docker image.

Firefox needs to be installed before I can run Selenium. However, when trying to install it with:

rpm -i firefox

I get

error: open of firefox failed: No such file or directory

I have seen https://community.atlassian.com/t5/Answers-Developer-Questions/Downloading-and-Extracting-Firefox-in-Pipeline-Yaml/qaq-p/574076 , which suggests using a different Docker image with Firefox already installed.

 

I would like to avoid doing it this way if possible, because I am not super familiar with Docker. Is there a way for me to install Firefox in my pipeline without using a different Docker image?

Here is the yaml:

# Template maven-build
# This template allows you to test and build your Java project with Maven.# The workflow allows running tests, code checkstyle and security scans on the default branch.
# Prerequisites: pom.xml and appropriate project structure should exist in the repository.
image: maven:3.6.3
pipelines: default:
-
parallel:
-
step: name: 'Install Firefox'
script:
-
rpm -i firefox
-
step: name: Build and Test
caches:
-
maven
script:
-
mvn -B verify --file pom.xml
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
-
pipe: atlassian/checkstyle-report:0.2.0
-
step: name: Security Scan script: # Run a security scan for sensitive data. # See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
-
pipe: atlassian/git-secrets-scan:0.4.3

Thank you. Any help is appreciated.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events