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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.