当前位置:网站首页>Jenkins continuous integration automation test practice (Part 1)
Jenkins continuous integration automation test practice (Part 1)
2022-07-21 23:29:00 【Pot talk soft test】
Continuous integration (CI Continuous integration/CD Continuous Deployment) The meaning of "team development" is actually the team development members in the R & D process continued Sex will be their work Integrate To a complete process , Typically each member integrates at least once a day , Each integration is through an automated build ( Including the compilation , Release , automated testing ) To verify , This enables early detection of integration errors . The main process of continuous integration is as follows :
Sort out the R & D system , Development 、 test 、 The operation and maintenance process and Integrable parts include :
- Development : Complete code writing or modification , Submit the code to the version library and package the project after merging , The parts that can be integrated are :
- From the source code version management tool ( such as SVN、git) Pull the source code
- Based on the version source code, use the compilation tool to complete the packaging (maven/gradle/ant etc. ), Perform unit tests , Form applications that can be deployed or installed to run (war perhaps jar Bag, etc )
- Operation and maintenance : After compiling and packaging the deployable project , Deploy to various environments , The whole process can be continuously integrated
- Projects that will be deployable , By deploying the script process (shell、bat、docker Orders, etc ) Complete the deployment on the server environment
A lot of times , When developing your own continuous integration operation , At this stage, the project can be deployed normally , It's over .
- test : After the project is deployed to the test environment , Carry out smoke test ( Execute through automated tests ), The integrable part is :
- Execute the automated test script on the deployed test environment
Before continuous integration , Please make sure that each process can be executed separately !
Next, let's say Windows Started under the server Jenkins Deployment in China Java Written in the course SpringBoot Take project operation as an example , Complete the operation of each part of the process .
Create build tasks
newly build Item
Fill in the name , choice freestyle project, Complete the creation of the build task .
Pull the source code of the project
Communicate with the developer to obtain the address and authentication method of the source code version warehouse , Make the relevant configuration .
If the authentication method needs to be configured , Click on credentials Add button under , You can quickly configure authentication methods , Take the private key configuration as an example :
To his own git Private key file id_rsa( It usually exists in the user directory by default .ssh In the folder ) Copy and paste the contents in .
Compile package project
According to the compilation and packaging method of the company's project , Select the corresponding compilation execution scheme .
For our project , Use maven Of clean package Command can complete unit test execution and packaging operations during the construction process , Form an executable jar.
P.S: Pay attention to the inspection items pom In the document packaging The element value is Jar.
边栏推荐
- Day 6 area division and LSA
- C语言运用函数七大极易忽略的结论
- All equipment, accessible throughout the network
- 运用链表必记的九大超实用结论
- Unity lock the arc motion of the camera around the locked target
- Is the subscript operator a monocular operator or a binocular operator
- APP 测试如何保证多机型覆盖 ?
- Have you seen the open source data visualization community comparable to the "fairy fight"?
- TWINCAT3中使用FIFO收集三轴的位置信息,XML文件的生成,解决常见报错
- Jenkins持续集成自动化测试实战(上篇)
猜你喜欢
随机推荐
Unity based hololens2 and server for JSON, model and video streaming practice (personal hololens2 advanced development summary)
关于char str[20]=““ 和 char str[20]=“ “
The market scale of 300million chips competes, and the inventory of domestic ZigBee chips
Hololens reading and downloading JSON files (personal hololens2 advanced development summary II)
List set map queue deque stack traversal method summary
Have you seen the open source data visualization community comparable to the "fairy fight"?
How to test interfaces that depend on third parties?
基于OSPF的MGRE实验
从基础矩阵中求解本质矩阵,得到相机的参数(三维重建task1-5)
OSPF working process and its simple experiment
Comprehensive experiment of RIP
Single arm routing configuration
如何从业务测试过渡到测试开发呢?
The use of PageHelper is simple and popular
Support cocoscreator 3 X third party Library
写入文件的有关问题与链表指针
All equipment, accessible throughout the network
TCP three handshakes and four disconnects
MGRE实验
Unity lock the arc motion of the camera around the locked target