
上QQ阅读APP看书,第一时间看更新
How to do it...
- Open the Jenkins dashboard.
- Go to Manage Jenkins.
- Go to Global Tool Configuration to configure tools, their locations, and automatic installers.
- Go to the JDK section.
- Give the Name and tick the Install automatically option; provide details for the Oracle account to download JDK successfully.
- You can give a logical name such as JDK 1.7 or JDK 1.8 to identify the correct version while configuring a build job.
- You can add multiple JDKs based on the version, so if different applications require different JDKs then the scenario can be managed easily by adding JDK in Jenkins:
