当前位置:网站首页>Jenkins continuous integration environment construction V (Jenkins common construction triggers)
Jenkins continuous integration environment construction V (Jenkins common construction triggers)
2022-07-04 02:39:00 【Public righteousness】
List of articles
1. Jenkins Trigger type
Jenkins built-in 4 Build triggers :
- Trigger remote build
- Trigger after other projects are built (Build after other projects are build)
- Time to build (Build periodically)
- polling SCM(Poll SCM)
2. Trigger remote build
stay web_demo_pipeline In the project configuration
Application save .
Authentication token random , Just remember ( Tokens are actually best encrypted , There is no need to demonstrate here )
Remotely triggered built url
:http://192.168.10.30:8888/job/web_demo_pipeline/build?token=8888
Browser login this URL, Trigger Jenkins An automated build .
Let's change it IDEA Code in , Resubmit to Gitlab.
see Tomcat Publish results
3. Trigger after other projects are built
establish pre_project Assembly line engineering
Pre engineering is only an example , Unwanted git Pull the code , Just output a line of statements .
go back to web_demo_pipeline Project configuration
Start building front projects
We build the pre project manually , After the pre engineering construction is completed, it will trigger web_demo_pipeline
Automatic construction of projects .
see web_demo_pipeline Whether to build automatically
modify IDEA Resubmit the code .
see Tomcat Publish results
4. Time to build
The timing strings from left to right are :
branch when Japan month Zhou
Some examples of timed expressions :
Every time 30 Build once in minutes (H On behalf of the parameter ):H/30 * * * *
Every time 2 Build once an hour : H H/2 * * *
Daily 8 spot ,12 spot ,22 spot , Build... In a day 3 Time ( Multiple time points are separated by commas ):0 8,12,22 * * *
Every day at noon 12 Build once on a regular basis :H 12 * * *
Every afternoon 18 Build once on a regular basis :H 18 * * *
Every... In the first half of every hour 10 minute :H(0-29)/10 * * * *
Every two hours , Every weekday in the morning 9 Point to the afternoon 5 spot ( Maybe in the morning 10:38, Afternoon 12:38, Afternoon 2:38, Afternoon 4:38):H H(9-16)/2 * * 1-5
go back to web_demo_pipeline engineering
see Tomcat Publish results
PS: Cancel the scheduled construction after the experiment !
5. polling SCM
polling SCM, When specified, scan the local code warehouse for code changes , If the code changes, the project build is triggered .
Be careful : This time build triggers ,Jenkins The code of the whole local project will be scanned regularly , Increase the cost of the system , Not recommended .
modify IDEA Code and submit to Gitlab
see Jenkins Whether to build automatically
see Tomcat Publish results
边栏推荐
- Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau
- Gee import SHP data - crop image
- Yyds dry goods inventory override and virtual of classes in C
- STM32 key content
- 7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
- Unity knapsack system (code to center and exchange items)
- Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog
- Amélioration de l'efficacité de la requête 10 fois! 3 solutions d'optimisation pour résoudre le problème de pagination profonde MySQL
- There is no need to authorize the automatic dream weaving collection plug-in for dream weaving collection
- [Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
猜你喜欢
Dans la recherche de l'intelligence humaine ai, Meta a misé sur l'apprentissage auto - supervisé
The first spring of the new year | a full set of property management application templates are presented, and Bi construction is "out of the box"
Advanced learning of MySQL -- Application -- storage engine
Network communication basic kit -- IPv4 socket structure
What is the intelligent monitoring system of sewage lifting pump station and does it play a big role
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
Node solves cross domain problems
AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用
16. System and process information
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
随机推荐
Global and Chinese market of small batteries 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql-15 aggregate function
Valentine's Day - 9 jigsaw puzzles with deep love in wechat circle of friends
Yyds dry goods inventory hand-in-hand teach you the development of Tiktok series video batch Downloader
Johnson–Lindenstrauss Lemma
13. Time conversion function
Data collection and summary
Question d: Haffman coding
The difference between lambda expressions and anonymous inner classes
What is the student party's Bluetooth headset recommendation? Student party easy to use Bluetooth headset recommended
LV1 previous life archives
12. Gettimeofday() and time()
LV1 Roche limit
Global and Chinese market of thin film deposition systems 2022-2028: Research Report on technology, participants, trends, market size and share
Keep an IT training diary 054- opening and closing
Key knowledge of embedded driver
96% of the collected traffic is prevented by bubble mart of cloud hosting
A. Min Max Swap
Redis transaction
What are the main investment products of bond funds and what are they