It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline YAMl for JDK13 or JDK 14

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.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

608 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you