当前位置:网站首页>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 jdkCommand 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
查看服务状态

边栏推荐
猜你喜欢

mae,mse,rmse分别利用sklearn和numpy实现

AWS Lambda related concepts and implementation approach

数据化管理洞悉零售及电子商务运营——零售密码

MySQL之my.cnf配置文件

被Win11安全中心误删除的文件怎么恢复?

Multimedia and Internet of Things technology make the version "live" 129 vinyl records "Centennial Voice"

Digital management insight into retail and e-commerce operations - retail password

超宽带UWB实时精准定位,短距离无缝交互应用,物联网厘米级精度方案

Heap Sort

Win10电脑经常发出叮咚声音怎么关闭
随机推荐
zabbix部署
8月活动|51CTO十七周年庆,发博文得茶具/笔记本/T恤等礼品!
[论文翻译] Unpaired Image-to-Image Translation using Adversarial Consistency Loss
ROI LTV CPA ECPM体系讲解
mysql进阶(二十六)MySQL 索引类型
航企纠缠A350安全问题 空客主动取消飞机订单
小程序容器加快一体化在线政务服务平台建设
低代码是开发的未来吗?浅谈低代码开发平台的发展现状及未来趋势
无代码平台多项选择入门教程
RAID介绍及RAID5配置实例
LVS+Keepalived群集部署
无代码平台多行文字入门教程
MySQL:完整性约束和 表的设计原则
Multimedia and Internet of Things technology make the version "live" 129 vinyl records "Centennial Voice"
关于ARM2440中断源个数的一点想法[通俗易懂]
超宽带UWB实时精准定位,短距离无缝交互应用,物联网厘米级精度方案
Camunda整体架构和相关概念
微信小程序自定义组件-城市选择「建议收藏」
什么是元宇宙?
[easyUI]修改datagrid表格中的值