当前位置:网站首页>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
边栏推荐
- What are the conditions for the opening of Tiktok live broadcast preview?
- [software implementation series] software implementation interview questions with SQL joint query diagram
- Yyds dry goods inventory override and virtual of classes in C
- Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
- 14. Process time
- Sword finger offer 14- I. cut rope
- Push technology practice | master these two tuning skills to speed up tidb performance a thousand times!
- 150 ppt! The most complete "fair perception machine learning and data mining" tutorial, Dr. AIST Toshihiro kamishima, Japan
- Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
- LV1 previous life archives
猜你喜欢
From the 18th line to the first line, the new story of the network security industry
Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog
Kiss number + close contact problem
1189. Maximum number of "balloons"
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Save Private Ryan - map building + voltage dp+deque+ shortest circuit
[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
There is no need to authorize the automatic dream weaving collection plug-in for dream weaving collection
Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.
Fudan released its first review paper on the construction and application of multimodal knowledge atlas, comprehensively describing the existing mmkg technology system and progress
随机推荐
Career development direction
From the 18th line to the first line, the new story of the network security industry
LV1 Roche limit
Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram
Save Private Ryan - map building + voltage dp+deque+ shortest circuit
Méthode de calcul de la connexion MSSQL de la carte esp32c3
A. Div. 7
Question d: Haffman coding
Final consistency of MESI cache in CPU -- why does CPU need cache
[software implementation series] software implementation interview questions with SQL joint query diagram
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
Lichuang EDA learning notes 14: PCB board canvas settings
Contest3145 - the 37th game of 2021 freshman individual training match_ D: Ranking
Idea if a class cannot be found, it will be red
The boss said: whoever wants to use double to define the amount of goods, just pack up and go
Network byte order
Remember another interview trip to Ali, which ends on three sides
Optimization theory: definition of convex function + generalized convex function
Neo4j learning notes
The difference between int (1) and int (10)