当前位置:网站首页>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 
边栏推荐
- Question d: Haffman coding
- A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
- Valentine's Day - 9 jigsaw puzzles with deep love in wechat circle of friends
- Keep an IT training diary 055- moral bitch
- MySQL advanced SQL statement (1)
- FRP intranet penetration
- Redis transaction
- Sword finger offer 20 String representing numeric value
- Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
- Bugku Zhi, you have to stop him
猜你喜欢

Buuctf QR code

Pagoda SSL can't be accessed? 443 port occupied? resolvent

Node write API

A fan summed up so many interview questions for you. There is always one you need!

Database concept and installation

Yyds dry goods inventory it's not easy to say I love you | use the minimum web API to upload files

Redis transaction

Valentine's Day - 9 jigsaw puzzles with deep love in wechat circle of friends

Pytoch residual network RESNET

What is the student party's Bluetooth headset recommendation? Student party easy to use Bluetooth headset recommended
随机推荐
Hamburg University of Technology (tuhh) | intelligent problem solving as integrated hierarchical reinforcement learning
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
16. System and process information
Johnson–Lindenstrauss Lemma
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
The "two-way link" of pushing messages helps app quickly realize two-way communication capability
Crawler practice website image batch download
Question d: Haffman coding
Leetcode 110 balanced binary tree
Sword finger offer 14- I. cut rope
Unity controls the selection of the previous and next characters
Winter vacation daily question -- a single element in an ordered array
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Sword finger offer 20 String representing numeric value
Example 073 square sum value judgment programming requires the input of a and B, if a ²+ b ² If the result of is greater than 100, a is output ²+ b ² Value, otherwise output the result of a + B.
C learning notes: C foundation - Language & characteristics interpretation
PMP daily three questions (February 14, 2022)
Neo4j learning notes
Redis transaction
Idea if a class cannot be found, it will be red