当前位置:网站首页>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
查看服务状态
边栏推荐
猜你喜欢
随机推荐
VSCode学习资料
AWS Lambda相关概念与实现思路
在 .NET MAUI 中如何更好地自定义控件
iMeta | 德国国家肿瘤中心顾祖光发表复杂热图(ComplexHeatmap)可视化方法
江西发布紧急通知:全面开展涉校涉生安全隐患大排查
Jenkins使用手册(1) —— 软件安装
第二批养老理财试点产品发行 一小时销售20亿元
Super Learning Method
美摄问答室|美映 VS 美摄云剪辑
rk3399-339 usb设备复合 总体流程
【c】操作符详解(二)
redis解决分布式session问题
[论文翻译] Unpaired Image-to-Image Translation using Adversarial Consistency Loss
LeetCode 54. 螺旋矩阵 蛇形矩阵式输出字符串
学习在php中将特大数字转成带有千/万/亿为单位的字符串
[easyUI]修改datagrid表格中的值
二叉树与堆
What is the terminal privilege management
什么是元宇宙?
The difference between Mysql application log time and system time is eight hours