You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
my code is running normal in my local machine but when im trying to run it on bitbucket piplines im getting error
here is my yml file:
image: maven:3.6.3
pipelines:
default:
- step:
caches:
- maven
script:
- mvn test
Hi @Mahmoud Sameer and welcome to the community.
Bitbucket Pipelines builds run in a Docker container based on the image you have defined in your yml file. In your example, it will be a Docker container based on the Dockerhub image maven:3.6.3.
I would suggest debugging the build locally with Docker (using the image maven:3.6.3) as per the instructions in the following guide:
You will then be able to execute commands from the script of your yml file in this setup and see if they fail with the same error or not.
Your local machine may have dependencies and tools that this Docker image is missing and that you may need to configure. If you debug this locally with Docker and you get the same error, then the issue is most likely related to the configuration of your build.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.