1. 程式人生 > >jenkins基礎知識

jenkins基礎知識

一.agent篇:當有實體機時,在manage jenkins裡的sysconfig裡配置agent,agent可以選擇安裝基礎映象

二.

1.執行命令:sh或者bat(windows)declarative裡sh咋整?  直接sh ‘xxxx’,如果是多行?'''xxx  ccc dddd'''即可,兩種流水線都是這樣的,windows用bat

2.declarative和script的區別: script很隨意,直接node下stage。

3.retry 和 timeout模組,針對一個step重試或者超時,還可以巢狀組合

4.結束後的處理;decla採用的是用post命令,script用try catch和finnally,語法非常像java

 

jenkins權威指南  https://www.bogotobogo.com/DevOps/Jenkins/images/Intro_install/jenkins-the-definitive-guide.pdf