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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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.

1 answer

0 votes

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
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...

1,225 views 0 3
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