一、安装
1.创建jenkins工作目录
mkdir /home/chanfi/docker/jenkins
2.下载JDK
#进入工作目录下
cd /home/chanfi/docker/jenkins
#创建JDK目录
mkdir java
cd java
#下载jdk(或到官网中下载:https://www.oracle.com/java/technologies/downloads/?er=221886)
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz
#解压
tar -zxvf jdk-17_linux-x64_bin.tar.gz
rm -rf jdk-17_linux-x64_bin.tar.gz
#返回工作目录
cd /home/chanfi/docker/jenkins
3.下载MAVEN
#进入工作目录下
cd /home/chanfi/docker/jenkins
#创建JDK目录
mkdir maven
cd maven
#下载jdk(或到官网下载:https://archive.apache.org/dist/maven/maven-3)
wget https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
#解压
tar -zxvf apache-maven-3.9.9-bin.tar.gz
rm -rf apache-maven-3.9.9-bin.tar.gz
#修改maven的setting.xml
cat > /home/chanfi/docker/jenkins/maven/apache-maven-3.9.9/conf/setting.xml <<-EOF
<?xml version="1.0" encoding=
标签:bin,tar,部署,gz,maven,apache,jenkins,docker
From: https://blog.csdn.net/u012533920/article/details/141394090