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

边栏推荐
- JS工厂模式_工厂模式进行封装
- Jenkins使用手册(1) —— 软件安装
- STM32入门开发 制作红外线遥控器(智能居家-万能遥控器)
- 学习在微信小程序中判断url的文件后缀格式
- [论文阅读] Unpaired Image-to-Image Translation Using Adversarial Consistency Loss
- Introduction to the core methods of the CompletableFuture interface
- 数据使用要谨慎——不良数据带来严重后果
- [论文翻译] Unpaired Image-to-Image Translation using Adversarial Consistency Loss
- Win11系统重装用什么好 一键重装Win11教程
- Win7C盘不能扩大怎么办?Win7C盘扩展卷不能点怎么解决
猜你喜欢
随机推荐
华为云安全云脑,让企业云化运营更放心
Win11如何隐藏输入法悬浮窗?
MySQL之my.cnf配置文件
Rust 入门指南 (用 WASM 开发第一个 Web 页面)
自己实现一个枚举validation校验器
小程序容器加快一体化在线政务服务平台建设
被Win11安全中心误删除的文件怎么恢复?
【c】操作符详解(二)
AWS Lambda相关概念与实现思路
密码字典生成工具pydictor/john
pyvista 的介绍与使用
JS工厂模式_工厂模式进行封装
HCIP 交换实验
图文手把手教程--ESP32 OTA空中升级(VSCODE+IDF)
栈与队列的实现
STM32前言知识总结
无代码平台多行文字入门教程
语音社交app源码——具备哪些开发优势?
高级转录组分析和R数据可视化火热报名中(2022.10)
无代码平台描述文字入门教程









