Hi,
I am fairly new to Bitbucket pipeline and I am enjoying it, however, I struggling to customise it from a sample which I found on the forum.
My current YAML file looks like this:
image: maven:3.3.9
pipelines:
branches:
master:
- step:
name: Build and Test
image: maven:3
caches:
- maven
script:
- echo "Tests started"
- mvn -B clean verify
- echo "Tests Completed"
- step:
name: Create artifact
script:
- tar czfv application.tgz pom.xml src/
artifacts:
- application.tgz
- step:
name: Deploy to Staging
deployment: staging
script:
- pipe: atlassian/heroku-deploy:0.1.1
variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: $HEROKU_APP_NAME
ZIP_FILE: "application.tgz"
- echo "DONE!"
This uses JDK8 during the build, how can I change it so I can use any JDK i wish, more so for JDK 13 or JDK 14.
Hi @dmaia92 ,
thank you for your feedback!
Let's try to change image in the step "Build and Test" from `image: maven:3` to the image appropriate for your case from maven dockerhub.
Cheers,
Alex
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.