当前位置:网站首页>Jenkins User Manual (1) - Software Installation
Jenkins User Manual (1) - Software Installation
2022-08-04 10:32:00 【51CTO】
阅读目录
目的
Continuous integration as a practice of software development,Its fast and frequent integration allows products and projects to iterate at high speed while maintaining high quality.
而JenkinsAs an excellent open source continuous integration tool,provided for development、测试、Powerful automatic construction support for each role of operation and maintenance.
Testing is an important phase in continuous integration,使用JenkinsThe need to perform automated testing is self-evident,利用JenkinsDo an automated build(编译、打包、部署、自动化测试)Problems in software can be found early,Corresponding to testing left shift,The sooner the test is involved in the project phase,The less expensive it is to find and fix problems.
说明
1.此笔记的中所使用的操作系统为CentOS7.9,笔记中所涉及的软件版本有可能会因为时间的推移而导致不匹配或其他额外的操作,请大家有针对性的选择阅读与参考.
2.此笔记中的所有操作均基于root用户进行,其他用户如无权限请自行搜索(linux的基础操作这里不展开讨论),友情提示:即使有权限,也千万别在公司相关生产环境内试验探索哦.
依赖安装
Java
由于Jenkins是基于Java开发,所以我们需要先安装JDK
JDK推荐使用1.8版本,Too high to support,If it is too low, you can only use the old versionJenkins
两种下载方式:
1.离线安装
JDK下载地址: Java Downloads
After downloading it will be via remote toolstarThe package is placed in the path specified by the server
在对应目录中进行tarUnpacking the package
If necessary, you can rename and move the extracted folder(非必要)
2.在线安装
使用yum search jdk
Command to search for downloadableJDK安装包
After finding the corresponding version, download and install it online
安装完成后开始配置环境变量(This step is required for both offline and online installations)
编辑profile文件
Add variables at the very end of the file,内容如下:
这里需要说明的是JAVA_HOMEThe address is configured according to the actual path of your installation,Don't get it wrong,Because the next three variables need to use the address in the first variable.
保存退出后,Use the command to modify the environment variables to take effect
验证Java安装成功与否
Maven
Maven是一个依赖管理工具,构建项目的时候MavenThe required dependencies are automatically downloaded and built.
MavenThe installation can also be divided into online and offline,方法和Java类似,这里不再赘述.
Maven下载地址: Downloading Apache Maven
安装完毕后,Still configure environment variables
编辑profile文件
Add variables at the very end of the file,内容如下:
验证Java安装成功与否
软件安装
Jenkis
下载地址: Jenkins Redhat Packages
Here is the introduction to useyum install
的方式来进行安装,Other methods can also be viewed on this page
先添加Jenkins's official website source
创建jenkins.repo文件
Add the following to the file:
安装Jenkins
If necessary, it can be modified accordinglyJenkins配置文件(非必要)
这里可以修改Jenkinsprogram account
这里可以修改Jenkins的运行端口,默认为8080
完成后启动Jenkins
查看服务状态
边栏推荐
猜你喜欢
随机推荐
开源一夏|ArkUI如何自定义弹窗(eTS)
2万字50张图玩转Flink面试体系
8月活动|51CTO十七周年庆,发博文得茶具/笔记本/T恤等礼品!
Win11文件资源管理器找不到选项卡怎么办?
【cookie 临时存储数据,WebStorage ,sessionStorage】
usb设备复合g_webcam摄像头码流传输功能以及g_serial串口功能
Rust 入门指南 (用 WASM 开发第一个 Web 页面)
冰蝎逆向初探
Super Learning Method
Win11系统重装用什么好 一键重装Win11教程
八、MFC对话框
nsq部署_andlua辅助源码
Win10电脑经常发出叮咚声音怎么关闭
在测试集上训练,还能中CVPR?这篇IEEE批判论文是否合理?
知其然,知其所以然,JS 对象创建与继承
OD-Model【5】:YOLOv1
zabbix部署
onlyoffice设置跟踪变化trackChanges默认为对自己启动
RAID介绍及RAID5配置实例
再次搞定 Ali 云函数计算 FC