buildbot

一键实现自动化部署(灰度发布)实践

走远了吗. 提交于 2020-12-30 10:30:16
在过去几年的DevOps的浪潮中,自动化、持续集成这两个概念早已深入人心(互联网技术人)。 比尔盖茨先生曾经都说过: “任何技术在一个业务中使用的第一条规则就是,将自动化应用到一个高效的操作上将会放大高效。第二条就是自动化应用到一个低效操作上,则放大了低效率。” 自动化部署也逐渐成为各中小型企业追求的方向,那么,今天民工哥就自动化部署的概述、自动化部署的工具、自动化部署的流程、自动化部署实践等4个方面,与大家一同来讨论、交流一下关于中小企业自动部署的问题。 1、自动化部署概述 1.1 什么是自动化部署 一句简单的话概括:部署的过程中所有的操作全部自动化,无需人工手工干预。 1.2 自动部署的好处 传统的部署方式如下: 运维人员手工使用Scp、Xftp等方式来传输数据 手工登录服务器执行git pull 、svn update等命令进行更新代码的操作 开发人员手工编译打包,然后通过内网传输给运维人员 运维人员通过rz上传的方式上传到目标服务器,然后,执行重命名原包、拷贝新包到目标目录,再执行服务应用重启命令完成整个部署过程 看似非常简单,也不是很麻烦,但是一旦项目多,部署频繁,这种情况下就会大大降低工作效率。民工哥之前工作中就有这类体验,公司的活动类项目高达100+,很多都是需要快速上线及下线、或者更新的,手工部署真的累。 传统的部署方式有以下的缺点: 整个过程都需要人员参与

What algorithm does buildbot use to assign builders to slaves?

╄→尐↘猪︶ㄣ 提交于 2020-01-21 04:58:08
问题 I have a buildbot with some builders and two slave machines. Some of the builders can run on one slave, and some of them can run on both machines. What algorithm will buildbot use to schedule the builds? Will it notice that some builders can run on just one slave and that it should assign those that can run on both slaves to the less demanded one? (I know buildbot can be used to run the same build on multiple architectures, say Windows, Linux, etc. We are using it to distribute builds for

buildbot scheduler not work

本小妞迷上赌 提交于 2019-12-25 05:27:07
问题 I expected the buildbot trigger the builder when it detected a new revision had been commited to svn, but it failed. Only when the Periodic scheduler is added can the builder be triggered, but it's not my expectation. According to the log, 2012-07-30 23:51:33-0400 [-] SVNPoller: polling 2012-07-30 23:51:33-0400 [-] SVNPoller: _process_changes 11 .. 12 2012-07-30 23:51:33-0400 [-] Adding change revision 12 2012-07-30 23:51:34-0400 [-] SVNPoller: finished polling None new commit is detected,

How to a create a daily build folder using buildbot?

我是研究僧i 提交于 2019-12-23 20:15:32
问题 I want to save a copy of the nightly build, I figured putting each build into its own daily folder would be idea. However I cannot use the time from buildbot master.cfg because that it set when it is configured: copy_files = [".\\release\\MyProgram.exe", ".\\install\\ChangeLog.js", ".\\translations.txt"] server_dest_path_by_date = server_dest_path + "\\{0}".format(time.strftime("%Y-%m-%d")) my_return.addStep(steps.MakeDirectory(dir=server_dest_path_by_date)) for file in copy_files: my_return

Which continuous integration server is able to queue jobs?

江枫思渺然 提交于 2019-12-22 06:57:07
问题 Use case: CI server polls some VSC repository and runs test suite for each revision. And if two or more revisions were commited, even in a relatively small time interval, I want the CI server to put each of them in queue, run tests for each, store the results, and never run tests again for those commits. And I don't want the CI server to launch jobs in parallel, to avoid performance issues and crashes in case of many simultaneous jobs. Which CI server is able to handle this? My additional,

How can I run Buildbot build steps on worker/slave as non-root

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 02:02:22
问题 I'm having issue building electron via electron-packager when I run it as root. However, it works just fine when I run it as other user, say, vagrant. I've already asked question regarding the problem here. However, I think that if I can configure Buildbot to run as non-root on worker/slave I can get past the issue. I just can't find any resources that explain such a configuration setup. I'm running Buildbot Master and Worker(Slave) an separate Vagrant CentOS7 VM's. All is working, but build

buildbot: run svn with --trust-server-cert

风格不统一 提交于 2019-12-13 02:00:13
问题 I am trying to install buildbot for my project. I always run my svn commands with trust-server-cert option. How can I pass that to SVN thru buildbot? I don't see there is a way for doing that. What is the shortest workaround? 回答1: Use the extra_args argument to the buildbot.steps.source.SVN constructor. 来源: https://stackoverflow.com/questions/1908856/buildbot-run-svn-with-trust-server-cert

Adding customized functions to Buildbot

守給你的承諾、 提交于 2019-12-12 14:42:09
问题 I have written a function in python and I would like to have Buildbot to execute this function when it receives a "build" command. I have used the "factory.addStep()" before to add new commands through command line, but I'm not sure how I can add a python function to Buildbot. Thanks and please let me know if I'm being unclear on anything. 回答1: Do you want the code to run on the master or the slave? If you want to run code on the master, then all you need to do is subclass BuildStep , and put