既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
"live-restore": true,
"insecure-registries":["10.0.0.12:5000"]
}
systemctl restart docker
![在这里插入图片描述](https://img-blog.csdnimg.cn/206e45491b764b7a95ab7880184c83d3.png)
>
> 拉取成功
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/5f4d891115244026a1e7ebee6889e00e.png)
### 2、创建运行容器
docker run
-u root
–name jenkins-blueocean
-d
-p 8080:8080
-p 50000:50000
-v /usr/local/software/jenkins:/var/jenkins_home
-v /var/run/docker.sock:/var/run/docker.sock
docker.io/jenkinsci/blueocean
![在这里插入图片描述](https://img-blog.csdnimg.cn/a70e90446cee4123b51e434b25d9b545.png)
### 3、首次访问配置
![在这里插入图片描述](https://img-blog.csdnimg.cn/7f1b581e25bd469abcef9b727778da06.png)
>
> 查看日志,找到密码
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/5fb5a26e09f54ac287bb72801d4f409b.png)
>
> 自动安装一些插件
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/b2db244db9424e669e58ad5118d464d6.png)
>
> 创建一个用户,后续登录用这个用户名和密码
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/2dc675cae2594c7eaef104acfacaf997.png)
## 二、配置jenkins
### 1、汉化
![在这里插入图片描述](https://img-blog.csdnimg.cn/476f0c2427ab410880f379f23e4d1acc.png)
>
> 选择插件进行安装
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/8dc642602ce94ca9ad87749b2d46b79a.png)
>
> 进行语言的设置
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/3b9bd108df7546d596ca3cb83d4ded22.png)
### 2、mvn的配置
采用的是复制压缩包到镜像中,然后解压的方式,可以参考下面博客
[Linux安装git和maven——拉取代码 --> mvn打包成jar包 —>运行jar包]( )
![在这里插入图片描述](https://img-blog.csdnimg.cn/9af9a8db9833485aaa5ff6262c0de738.png)
配置一下xml设置文件
![在这里插入图片描述](https://img-blog.csdnimg.cn/55f612050be0477999e82935cc0a89ea.png)
>
> 设置maven的安装路径
>
>
>
![在这里插入图片描述](https://img-blog.csdnimg.cn/aebb9c88ef164a16847112a3f78594e6.png)
### 3、配置jdk
![在这里插入图片描述](https://img-blog.csdnimg.cn/bd0e65475bcd414689aabf56ad0ea32a.png)
输入以下命令进行docker自带的jdk的查找
which java
![在这里插入图片描述](https://img-blog.csdnimg.cn/c8bffb4694fd483398e7ebadb8f98c07.png)
## 三、使用案例
### 1、设置源码位置
![在这里插入图片描述](https://img-blog.csdnimg.cn/4165b909fd684803b90e2bf2cae8f54a.png)
### 2、构建的步骤
clean package -Dmaven.test.skip=true -U
![在这里插入图片描述](https://img-blog.csdnimg.cn/b6d53f1bb46d43f5a0236590793c524f.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/79003884834a4759bd8424b7b20aa613.png)
docker -v
echo “---------构建成功---------”
![在这里插入图片描述](https://img-blog.csdnimg.cn/6cc4bfb1084347eaa0d13793594b477a.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/423d3ce76e5f42cb8998a4c8045d1fc5.png)
### 3、构建过程查看
![在这里插入图片描述](https://img-blog.csdnimg.cn/cb674f12b37c4fabb9fc411f6826da7e.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/a55ff5d61e2c4744ad6692f12f3e8ddc.png)
## 四、遇到的问题集锦
### 1、打包失败
![在这里插入图片描述](https://img-blog.csdnimg.cn/ae4c3f37c7eb4c3d96d480ca0b0ee797.png)
[ERROR] Failed to execute goal on project spring-gc-demo: Could not resolve dependencies for project com.tianju:spring-gc-demo:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter:jar:2.3.8.RELEASE, org.springframework.boot:spring-boot-autoconfigure:jar:2.3.8.RELEASE, com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4, org.springframework.boot:spring-boot-starter-tomcat:jar:2.3.8.RELEASE, org.springframework:spring-context:jar:5.2.12.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-starter:jar:2.3.8.RELEASE from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter/2.3.8.RELEASE/spring-boot-starter-2.3.8.RELEASE.jar: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.108.215, repo.maven.apache.org/2a04:4e42:8c:0:0:0:0:215] failed: Network unreachable (connect failed) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Build step ‘Invoke top-level Maven targets’ marked build as failure
解决方法:
配置一下阿里云的地址
![在这里插入图片描述](https://img-blog.csdnimg.cn/32f378786b73431cb55b79876b4638e9.png)
<mirror>
<id>aliyunmaven</id>
<mirrorOf>central</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
![img](https://img-blog.csdnimg.cn/img_convert/b4d1c3a566902e4937d0f6451226110e.png)
![img](https://img-blog.csdnimg.cn/img_convert/6addea032d22f92965ec58249499d44a.png)
![img](https://img-blog.csdnimg.cn/img_convert/5d0872b9bbba544d0b90f4cd20fecab0.png)
**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**
**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**
**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)**
o-1715793002570)]
[外链图片转存中...(img-Y2l2URDf-1715793002570)]
**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**
**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**
**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)**