注意:新版的jenkins需要的jdk版本为11.如果出现以下报错解决方案
报错:
AWT is not properly configured on this server. Perhaps you need to run your container with “-Djava.awt.headless=true”? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless解决方案: 先安装以下插件
yum install dejavu-sans-fonts
yum install fontconfig
yum install xorg-x11-server-Xvfb -y
[root@localhost ~]# hostnamectl set-hostname cicd-jenkins
windows域名解析文件
C:\Windows\System32\drivers\etc\hosts
192.168.40.145 cicd-jenkins
Jenkins安装
jdk-11.0.19_linux-x64_bin.tar.gz
apache-tomcat-9.0.82.tar.gz
apache-maven-3.8.1-bin.tar.gz
jenkins.war
[root@cicd-jenkins ~]# tar xf jdk-11.0.19_linux-x64_bin.tar.gz -C /usr/lo