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

Pipeline YAMl for JDK13 or JDK 14

dmaia92 March 26, 2020

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.

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events