How to retrieve the JDK versions used across Build plans and Deployment plans

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Purpose

To quickly retrieve the JDK versions used in the build plans and deployment plans you can run the below query in your Bamboo database.

Solution

Please run the below query to get all the build plans using JDK.

SELECT b.full_key,
       r.key_identifier
FROM   build b
       JOIN requirement r
         ON b.requirement_set = r.requirement_set
WHERE  key_identifier LIKE '%jdk%'; 


Please run the below query to get all the deployment plans using JDK.

SELECT dp.name AS Deployment_plan_name,
       d.name  AS Enviorement_name,
       r.key_identifier
FROM   deployment_environment d
       JOIN requirement r
         ON d.requirement_set = r.requirement_set
       JOIN deployment_project dp
         ON d.package_definition_id = dp.deployment_project_id
WHERE  key_identifier LIKE '%jdk%'; 




Last modified on Nov 22, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.