Jenkins error: "ERROR: Unable to install JDK unless a valid username/password is provided." Jenkins error: "ERROR: Unable to install JDK unless a valid username/password is provided." jenkins jenkins

Jenkins error: "ERROR: Unable to install JDK unless a valid username/password is provided."


I was stuck with same error, banged my head for hours but no luck. But finallly the answer was jdk configuration on the master jenkins.

Writing this answer as i couldnt find much on this over internet.

  • Go to Manage Jenkins -> Global tool configurationand check the configuration for JDK in JDK installation.

  • Uncheck the install automatically checkbox as this will be forcing jdk installations on every slave.

If you want this option enabled then you have to give oracle account credentials which to be used by the jenkins to download the jdk.

If you already have java installed on your slaves then you would be better to uncheck the checkbox.


You can set the default credentials for Oracle here:

 http://<hostname>/descriptorByName/hudson.tools.JDKInstaller/enterCredential

hostname being your Jenkins URL.Thanks


Just set the JAVA_HOME in your Jenkins slave so it doesn't try to install another Java.