当前位置:网站首页>Jenkins manual (2) - software configuration
Jenkins manual (2) - software configuration
2022-08-05 09:45:00 【51CTO】
阅读目录
目的
持续集成作为软件开发的一种实践,其快速且频繁集成的特性使得产品与项目可以保持高速迭代的同时还可以保持高质量.
而Jenkins作为一款优秀的开源持续集成工具,提供给了开发、测试、运维各个角色强大的自动化构建支撑.
测试作为持续集成中一个重要阶段,使用Jenkins来执行自动化测试的必要性已经不言而喻,利用Jenkins进行自动化的构建(编译、打包、部署、自动化测试)可以尽早的发现软件中的问题,对应测试左移来说,测试在项目阶段中的介入的越早,发现及修复问题的代价就越小.
接上回
In the previous article we haveJenkins安装完成了,Then we're going toJenkinsTo do some necessary basic configuration.
初始化
第一次安装完Jenkins之后,We need in the browser to access the service,Address installation service for youIP,端口默认为8080,If the modified when installationJenkinsThe configuration of the file item,Then fill in the corresponding modified port.
The user password in the log location will installation is changed according to you,Concrete based on page path to find.
Copy the files in the initial users password,Return to the initial page to log in.
After logging in will jump to the customJenkins界面,We need in the interface ofJenkinsThe selection and installation related plug-ins,In general if you have specific need can use custom install plug-ins,If a temporary don't know what you want to install the plugin can choose recommend installing.Need to install any plug-ins can be late waiting forJenkinsAfter a configuration in the installation.
Here is a tentative choose recommend plug-in installation,Click after installation into the interface
The plugin will jump after the installation is complete to create administrator interface,Here we can create a new administrator,当然也可以直接使用adminThe user to continue after the operation.
After the completion of the administrator to create will enter the instance configuration interface
Interface will do detailed explanation for instance,这里就不做赘述了.
Jenkins初始化完成
基础配置
如果使用的是admin用户,For security reasons to amend the user password for
修改密码
选择管理Jenkins
Choice in safety management user
Select to modify the password of user,点击小齿轮
修改密码后保存退出
System configuration email
Generally in a continuous integration,Any formal automated activities results should notice to related people,Configure the system email is the first step to achieve this goal.
在管理Jenkins中,选择系统配置
Find relevant email address configuration,填写邮箱地址
接下来安装Email Extension相关插件
在插件管理中搜索Email Extension并进行安装,After the installation timely resumption of service.
再次进入Jenkins选择插件管理,Open already installed plugin
如果已经安装了Email Extension Template Plugin,First off this plugin,Two plug-ins are mutually exclusive.
After the installation in the system configuration found the expansion option of email
SMTP server:The email address
SMTP Port:SMTP服务端口
Credentials:凭证(非必要,可跳过)
Use SSL:这里选择SSL协议即可
Use TLS:不勾
Advanced Email Properties:Senior mail property,If there is no need to do not fill in
Default user e-mail suffix:The default user email suffix,按需添加
在后面的一些Reply-To Address、Default Subject(Receiving address receipt with the default title Settings)Such as ordinary set go,Can surf the net to search.
设置完之后保存退出.
配置JDK
进入全局工具配置,找到JDK后点击新增JDK
我们之前已经安装过JDK了,So need to cancel the automatic installation
填入JDK的名称与JAVA_HOME的路径,Path can print variable inside the serverJAVA_HOME查看,命令为echo $JAVA_HOME
配置Maven
与JDK相同的操作,点击新增Maven
取消自动安装
Fill in the software name and global variables,保存并退出.
至此,以上都是JenkinsThe most basic configuration actions,其实关于JenkinsThere are a lot of configuration needs to be configured according to the actual project business demand,比如git、构建、Scripts, and so on and so on,But methods are all the same,Interested students can go to search on the net.At the back of the continuous integration,I will from the perspective of the test team,With everyone to useK8s+JenkinsFor practical operation and explain.
边栏推荐
猜你喜欢
Microservice Technology Stack
express hot-reload
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
Seata source code analysis: initialization process of TM RM client
【zeno】为zeno增加子模块/新节点的最小化的例子
hcip BGP enhancement experiment
【LeetCode】623. Add a row to the binary tree
After Keil upgrades to AC6, what changes?
什么是CRM决策分析管理?
随机推荐
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
dotnet OpenXML 解析 PPT 图表 面积图入门
无题四
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
5. Deploy the web project to the cloud server
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
线程之Happens-before规则
Qiu Jun, CEO of Eggplant Technology: Focus on users and make products that users really need
2022-08-01 回顾基础二叉树以及操作
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
hcip BGP 增强实验
IDEA performs the Test operation, resulting in duplicate data when data is inserted
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
使用工具类把对象中的null值转换为空字符串(集合也可以使用)
19. Server-side session technology Session
CPU的亲缘性affinity
mysql索引
无题十
QSS 选择器
CCVR基于分类器校准缓解异构联邦学习