標籤:表示 用法 UI isp size guide 連結 jobs exec
參考連結: https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines+on+Windows
1,建立新的節點
【系統管理】-->【管理節點】-->【建立節點】-->輸入【節點名稱】,然後 選中 “Permanent Agent” 點擊【OK】
2,配置節點
在節點配置頁面,輸入如下:
*executors的數量,1或多個;
*輸入節點上的跟目錄,例如D:\jenkins;
*Usage選擇:Leave this machine for tied jobs only;
*Lunch Method選擇:Launch slave agents via Java Web Start ;
注:如果沒有“Launch slave agents via Java Web Start”選項,請參考:http://www.cnblogs.com/gaigaige/p/6809440.html
* Avaliablitiy選擇:Keep this slave online as much as possible;
* 點擊 save, 節點建立完成。
3,在將運行agent的機器上登入jenkins master,且進入【系統管理】-->【管理節點】-->點擊進入節點,點擊launch
串連成功後:
重新整理 agent狀態:
4,在Agent上運行job
對上面的Agent增加 【標籤】,從而表示此Agent的用處,同時確認【用法】選擇:"只允許綁定到這台機器的job"
對jenkins 中的job修改如下:
選擇restrict where this project can be run 且輸入Agent的【標籤】。
此時在構建時,job將會在Agent所在的機器運行。。。
jenkins 在windows上配置master 和 agent(slave)