1、进入Jenkins管理页面
2、进入全局工具配置
3、配置JDK
首先查看已安装JDK路径
[root@localhost conf]# which jdk /usr/bin/which: no jdk in (/home/admin/.local/bin:/home/admin/bin:/home/admin/.local/bin:/home/admin/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/java/jdk1.8.0_281/bin:/opt/java/jdk1.8.0_281/jre/bin)
然后添加JDK信息并保持
4、配置Maven
获取Maven安装路径
[root@localhost apache-maven-3.6.3]# mvn -v
填写配置信息
5、配置Git
查找Git的安装路径
[root@localhost apache-maven-3.6.3]# which git
配置Git