当前位置:网站首页>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 
边栏推荐
- PTA tiantisai l1-079 tiantisai's kindness (20 points) detailed explanation
- Hamburg University of Technology (tuhh) | intelligent problem solving as integrated hierarchical reinforcement learning
- A. Div. 7
- Neo4j learning notes
- Properties of binary trees (numerical aspects)
- Dans la recherche de l'intelligence humaine ai, Meta a misé sur l'apprentissage auto - supervisé
- 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.
- Key knowledge of C language
- Redis transaction
- Global and Chinese market of contour projectors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Example 072 calculation of salary it is known that the base salary of an employee of a company is 500 yuan. The amount of software sold by the employee and the Commission method are as follows: Sales

Crawler practice website image batch download

1189. Maximum number of "balloons"

The boss said: whoever wants to use double to define the amount of goods, just pack up and go

Network byte order

String & memory function (detailed explanation)

Learn these super practical Google browser skills, girls casually flirt

長文綜述:大腦中的熵、自由能、對稱性和動力學

Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau

Valentine's Day - 9 jigsaw puzzles with deep love in wechat circle of friends
随机推荐
查詢效率提昇10倍!3種優化方案,幫你解决MySQL深分頁問題
Global and Chinese market of cell scrapers 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql to PostgreSQL real-time data synchronization practice sharing
WordPress collection WordPress hang up collection plug-in
Record a problem that soft deletion fails due to warehouse level error
[software implementation series] software implementation interview questions with SQL joint query diagram
Chain ide -- the infrastructure of the metauniverse
POSTECH | option compatible reward reverse reinforcement learning
A. ABC
Leetcode 110 balanced binary tree
How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
What are the conditions for the opening of Tiktok live broadcast preview?
Iclr2022 | ontoprotein: protein pre training integrated with gene ontology knowledge
Sword finger offer 20 String representing numeric value
LV1 Roche limit
From the 18th line to the first line, the new story of the network security industry
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"
Properties of binary trees (numerical aspects)
Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics
Summarize the past to motivate yourself to move on