I set up my Jenkins Global Tool configuration to install OpenJdk 11 since the current node is using jdk 8. . I used the Run Batch Command with this script - sudo apt install openjdk-11-jdk. And then, I'm calling this in my Jenkins file on the syntax below:
tools { jdk 'JDK-11' }
Unfortunately I'm getting this error: Installer "Run Batch Command" cannot be used to install "jdk-11" on the node "Jenkins".
I want to install Java 11 since the Quarkus is only running from 11 and up.
Any help will be appreciated.