当前位置:网站首页>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.
边栏推荐
猜你喜欢

轩辕实验室丨欧盟EVITA项目预研 第一章(四)

哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?

上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》

seata源码解析:事务状态及全局锁的存储

Overall design and implementation of Kubernetes-based microservice project

【LeetCode】623. Add a row to the binary tree

七夕浪漫约会不加班,RPA机器人帮你搞定工作

Creo 9.0 基准特征:基准点

egg框架使用(一)

Advanced usage of C language
随机推荐
Assembly language (8) x86 inline assembly
程序员的七种武器
仿SBUS与串口数据固定转换
无题十一
Analysis and practice of antjian webshell dynamic encrypted connection
长达四年的减肥记录
What is the function of the regular expression replaceAll() method?
蚁剑webshell动态加密连接分析与实践
hcip BGP 增强实验
MQTT X Newsletter 2022-07 | 自动更新、MQTT X CLI 支持 MQTT 5.0、新增 conn 命令…
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
Hundred lines of code launch red hearts, why programmers lose their girlfriends!
什么是CRM决策分析管理?
深度学习21天——卷积神经网络(CNN):服装图像分类(第3天)
hcip BGP enhancement experiment
手写柯里化 - toString 理解
Jenkins使用手册(2) —— 软件配置
Excuse me, guys, is it impossible to synchronize two databases in real time using Flink SQL CDC?
只有一台交换机,如何实现主从自动切换之nqa
放大器OPA855的噪声计算实例