windows下buildbot 的搭建及config文件讲解
buildbot在windows環(huán)境下的搭建步驟:
master:
1. python -m venv sandbox(我使用的是python3.67,試過(guò)python2.7,系統(tǒng)推薦用python3于是乎就轉(zhuǎn)python3,python3.6自帶虛擬環(huán)境)
2.cd到sandbox下的Scripts目錄先,activate虛擬環(huán)境
3.pip install buildbot
4.pip install pywin32
5.pip install buildbot-www
6.pip install buildbot-grid-view
7.pip install buildbot-console-view
8.pip install buildbot-waterfall-view
從5到8 這幾步在buildbot的官方引導(dǎo)中沒(méi)有提及,不過(guò)不安裝的話,會(huì)報(bào)錯(cuò)。
9.buildbot create-master master
10.copy master\master.cfg.sample master\master.cfg?
11.buildbot start master
worker:
1. python -m venv sandbox
2.cd到sandbox下的Scripts目錄先,activate虛擬環(huán)境
3.pip install buidbot-worker
4.pip install pywin32
5.buildbot-worker create-worker workerA??【master的地址+端口】 workerA passwd
---------------------?
原文:https://blog.csdn.net/weixin_43483847/article/details/86605667?
——————————————————————————————————————————————————————
master.cfg簡(jiǎn)要介紹
這個(gè)master.cfg的文件是python的寫法。主要在里面配置了各種字典信息。分為以下幾個(gè)部分:workers,protocol,changesources,schedulers,builders,project identity,buildbot services,DB url。
而整個(gè)buildbot的動(dòng)作過(guò)程和這個(gè)文件密切相關(guān)。大體過(guò)程就是:
changesource檢測(cè)到變化,觸發(fā)對(duì)應(yīng)schedule,schedule指派對(duì)應(yīng)的builder來(lái)處理,builder安排自己的手下worker去執(zhí)行定義好的factory。最后buildbot收集到了結(jié)果,通過(guò)service 報(bào)告。
---------------------?
原文:https://blog.csdn.net/weixin_43483847/article/details/86640492?
總結(jié)
以上是生活随笔為你收集整理的windows下buildbot 的搭建及config文件讲解的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Pycharm 解决pip遇到的错误:m
- 下一篇: React.js开发生态系统概览 [译-