jenkins 在windows上配置master 和 agent(slave)

來源:互聯網
上載者:User

標籤:表示   用法   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)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.