-
介紹
本文基于版本2.80來進行分析。
包含4個工程:cli钳踊、jenkins-core泳梆、jenkins-war、test烈炭。
- core
jenkins-core是jenkins的核心工程溶锭,包含hudson、jenkins兩個主要的頂級包(package)符隙。
hudson.WebAppMain為web程序的入口趴捅。該類實現(xiàn)了接口ServletContextListener垫毙,并在初始化方法中啟動了一個初始化線程。
- model
hudson.model.Computer
hudson.model.ComputerSet是用來管理節(jié)點列表的Web接口類
- 插件
PluginManager
- 擴展點
hudson.ExtensionPoint該接口用于標識一個擴展驻售,并沒有規(guī)定任何方法露久。
- 監(jiān)聽器
抽象類hudson.slaves.ComputerListener用于通知計算節(jié)點(Computer)的狀態(tài)變化。
接口hudson.model.TaskListener
- 頁面
jenkins-core/src/main/resources/hudson/slaves/DumbSlave/configure-entries.jelly新增節(jié)點頁面
hudson/tools/ToolLocationNodeProperty/config.jelly工具配置頁面
- 前端組件
https://yuilibrary.com/yui/docs/yui/
- 構(gòu)建
mvn package -Dmaven.test.skip=true
https://wiki.jenkins.io/display/JENKINS/Building+Jenkins
- 調(diào)試
mvnDebug jenkins-dev:run
mvnDebug jenkins-dev:run -Dport=9090
- API
http://localhost:8080/createItem?mode=copy&from=ItemName&name=ItemNameStr
http://localhost:8080/computer/api/json?pretty=true
http://localhost:8080/computer/createItem/api/json?pretty=true&name=sd11f&mode=copy&from=111
http://localhost:9090/job/test-pipeline/13/pause/toggle
http://localhost:9090/job/test-pipeline/16/replay/run
mode-hudson.slaves.DumbSlave
-
參考
本文為原創(chuàng)欺栗,如果您當前訪問的域名不是surenpi.com,請訪問“素人派”征峦。