更新 java-项目.md

This commit is contained in:
wxin 2025-04-28 22:34:13 +08:00
parent bd90f93fff
commit 936e00abc9

View File

@ -16,21 +16,21 @@
### 1. 配置SSH
![](accents\image-202504280075.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280075.png)
![](accents\image-202504280076.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280076.png)
![](accents\image-202504280077.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280077.png)
### 2. 创建项目
![](accents\image-202504280078.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280078.png)
![](accents\image-202504280079.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280079.png)
![](accents\image-202504280080.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280080.png)
![](accents\image-202504280081.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280081.png)
## 三Jenkins
@ -46,49 +46,49 @@
### 2. 配置凭证
![](accents\image-202504280062.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280062.png)
![](accents\image-202504280063.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280063.png)
![](accents\image-202504280064.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280064.png)
![](accents\image-202504280065.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280065.png)
**用户密码模式**
![](accents\image-202504280066.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280066.png)
**SSH密钥模式**
![](accents\image-202504280067.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280067.png)
### 3. 配置SSH
![](accents\image-202504280068.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280068.png)
Jenkins服务器私钥传给web服务器
![](accents\image-202504280069.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280069.png)
![](accents\image-202504280070.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280070.png)
### 4. jdk git maven配置
![](accents\image-202504280071.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280071.png)
![](accents\image-202504280072.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280072.png)
Jenkins服务器安装git
![](accents\image-202504280073.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280073.png)
![](accents\image-202504280074.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280074.png)
## 四web
### 1. 拉取仓库
![](accents\image-202504280082.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280082.png)
```bash
[root@web ~]# cd /opt
@ -214,22 +214,22 @@ fi
### 1. 创建项目
![](accents\image-202504280083.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280083.png)
![](accents\image-202504280084.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280084.png)
![](accents\image-202504280085.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280085.png)
![](accents\image-202504280086.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280086.png)
![](accents\image-202504280087.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280087.png)
![](accents\image-202504280088.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280088.png)
![](accents\image-202504280089.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280089.png)
### 2. 构建
![](accents\image-202504280090.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280090.png)
![](accents\image-202504280091.png)
![](http://182.92.143.66:40072/directlink/img/CI-CD/image-202504280091.png)