I'm using ephemeral agent, there is capability JDK-21.
i've added it in base image
FROM atlassian/bamboo-agent-base:9.6.8-ubi9
RUN /bamboo-update-capability.sh "system.jdk.jdk21" "/app/jdk-21"I don't want to add this capability on the template, if added other project also builds looking to build ephemeral agent. this is i'm creating for specific project.
JAVA_HOME="${bamboo.capability.system.jdk.jdk-21}"