Hi Team,
We are working on MuleSoft projects, as part of jdk version upgrade we are migrating from jdk8 to jdk17 with maven version is 4.1.0.
In this migration process, when i try to configure in the as bitbucket-pipeline.yml as below, Build is failing immediately.
image: maven:4.1.0-jdk-17
Is there any solution/suggestion for this?
Hi Sainath and welcome to the community!
With the syntax you are using, Pipelines is going to look for the maven Docker image in DockerHub with the tag 4.1.0-jdk-17. However, an image with such a tag does not exist at the moment:
and I believe this is the reason that your build is failing.
You can find all available tags for the maven image here, and search by tag with the field "Filter Tags":
If you cannot find an existing Docker image with the version of maven and jdk you want, you can build your own custom Docker image and install on it the tools on the version you want. You can then push this image to DockerHub or another registry, and reference it in your bitbucket-pipelines.yml file. We support public and private Docker images including those hosted on Docker Hub, AWS, GCP, Azure and self-hosted registries accessible on the internet.
You can find more info on this page (at the end of the page there are resources on how to build your own custom Docker image):
Please feel free to reach out if you have any questions!
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.