当前位置:网站首页>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.
边栏推荐
猜你喜欢
express hot-reload
What is CRM Decision Analysis Management?
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
Overall design and implementation of Kubernetes-based microservice project
mysql进阶(二十七)数据库索引原理
MySQL内部函数介绍
Assembly language (8) x86 inline assembly
CCVR基于分类器校准缓解异构联邦学习
Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g
After Keil upgrades to AC6, what changes?
随机推荐
Is there a problem with writing this?How to synchronize data in sql-client
无题五
无题七
2022/8/4 考试总结
无题三
PAT Class B-B1019 Digital Black Hole (20)
Voice conversion相关语音数据集综合汇总
皕杰报表的下拉框联动
Going to book tickets tomorrow, ready to go home~~
MySQL使用聚合函数可以不搭配GROUP BY分组吗?
无题十
无题九
Concurrent CAS
What is CRM Decision Analysis Management?
无题二
韦东山 数码相框 项目学习(六)tslib的移植
在colab里怎样读取google drive数据
手把手教你纯c实现异常捕获try-catch组件
程序员的七种武器
Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)