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

边栏推荐
猜你喜欢
随机推荐
八、MFC对话框
栈与队列的实现
ThreadLocal详细分析
nsq部署_andlua辅助源码
[论文翻译] Unpaired Image-to-Image Translation using Adversarial Consistency Loss
LVS+Keepalived群集部署
mysql进阶(二十六)MySQL 索引类型
onlyoffice设置跟踪变化trackChanges默认为对自己启动
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之三
VSCode学习资料
在测试集上训练,还能中CVPR?这篇IEEE批判论文是否合理?
Person.class.getInterfaces() 注意使用方法
线程必备内容
微信小程序自定义组件-城市选择「建议收藏」
冰蝎工具开发实现动态二进制加密WebShell
redis解决分布式session问题
TCP协议 - 三次握手 - 四次挥手-内核参数调优
Maple 2022软件安装包下载及安装教程
第二批养老理财试点产品发行 一小时销售20亿元
Win11不识别蓝牙适配器的解决方法









