Can I use JDK 17 on bamboo?

sta-szek
Contributor
March 2, 2023

Hi, it is not quite clear for me what this page exactly states: https://confluence.atlassian.com/bamboo0802/supported-platforms-1103432705.html

 

JVM implementations other than HotSpot are not supported, and JDKs from other vendors have not been tested.

 

Does it mean that Azul Zulu will throw exception UnsupportedJDK and build will fail or rather the docs says that it was not tested and we can still give a try and hopefuly (as JDK is backward compatible, mostly :) ) we should get no errors?

Asking the same question the other way around: is bamboo blocking other vedors by purpose?

 

You only need to run the agent and server using a supported JDK. Agents can build software with any JDK version. 


What does it mean in my scenario, where i want to run JDK 17 on my builds. Is it conflicting? meaning i cannot use JDK 17 because bamboo does not support? or i can still use JDK 17? We are using bamboo elastic agent, configured by terraform scripts.

Does it mean that we have to have one of supported JDK set as JAVA_HOME on bamboo agent? or it means we can install JDK 17, set JAVA_HOME to 17, but we still need to have JDK 11 on agent? if so, how to configure it?

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 2, 2023

Hello @sta-szek

The Bamboo application requires JDK 8 and 11 to work. Running Bamboo over JDK 17 is not tested and will produce unexpected events.

But, Bamboo can run any JDK version you want on their Builds, including JDK 17, 21, etc. For that, you need to configure a new JDK capability and use it on your builds.

You are also free to use a Script Task, load a new JAVA_HOME and run "java" manually.

Thank you,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

sta-szek
Contributor
March 6, 2023

thanks @Eduardo Alvarenga 

do you know when JDK 17 will be supported and we can configure it on agents?

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2023

Hello @sta-szek,

Java 17 support as a running component is still being discussed internally and is likely to be included in a future Bamboo release (10 or later).

Cheers,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events