Buildbot master. cfg file Analysis

Source: Internet
Author: User
Maintain consistency with the content created when buildbot create-master is used to analyze key points
For more details, please read the manual on the official website. Http://buildbot.net/repos/release/docs/buildbot.html
Jimi @ Debian :~ /Buildbot/Master $ cat master. cfg

#-*-Python -*-
# Ex: Set syntax = Python: # Set the VI highlight Mode

C = buildmasterconfig = {}

From buildbot. buildslave import buildslave
C ['slafs'] = [buildslave ("bot1name", "bot1passwd")] # name and password required to create a slave

# To limit to two concurrent builds on a slave, use
# C ['slafs'] = [buildslave ("bot1name", "bot1passwd", max_builds = 2)] # limit the number of online slave instances

C ['slavepnum num'] = 9989 # the port number of the Server Load balancer instance to communicate with the master instance, which can be changed.

####### Changesources

# The 'change _ source' setting tells the buildmaster how it shocould find out
# About source code changes. Any class which implements ichangesource can be
# Put here: there are several in buildbot/changes/*. py to choose from.

# How the monitoring source code is changed
# From buildbot. Changes. Pb import pbchangesource # comment out
# C ['change _ source'] = pbchangesource () # comment out
# Using SVN
# The svnpoller. py script detects source code changes on the svn server.
From buildbot. Changes. svnpoller import svnpoller
C ['change _ source'] = svnpoller ("SVN: // 192.168.1.100/SVN/Pro", # Project address
Svnuser = '', svnpasswd ='', # the user and password, which were set to null at that time.
Pollinterval = 5) # queries every five seconds. The default value is 10 minutes.

####### Schedulers
From buildbot. scheduler import Scheduler
C ['schedulers'] = []
C ['schedulers']. append (schedend (name = "all", branch = none,
Treestabletimer = 5, # indicates the time required for the code to remain unchanged before code building. It is actually the buffer time for code uploads. After this time, the client builds the code.
Buildernames = ["buildbot-full"]) # name displayed on the webpage
####### Builders

# Cvsroot = ": pserver: anonymous@cvs.sourceforge.net:/cvsroot/buildbot" # comment out
# Cvsmodule = "buildbot" # comment out

From buildbot. process import Factory
From buildbot. Steps. Source import SVN
From buildbot. Steps. Shell import compile
From buildbot. Steps. python_twisted import trial
# F1 = factory. buildfactory () # comment out
# F1.addstep (CVS (cvsroot = cvsroot, cvsmodule = cvsmodule, login = "", mode = "copy") # comment out
# F1.addstep (compile (command = ["Python", "./setup. py", "Build"]) # comment out
# F1.addstep (trial (testpath = ".") # comment out

F1 = factory. buildfactory ()
F1.addstep (SVN (mode = 'update', baseurl = 'svn: // 192.168.1.100/SVN/Pro', # Project address
Defaultbranch = ''))#?
F1.addstep (compile (command = ["make"])
# All commands to be executed must be added in addstep, but the commands must exist in the slave path.

B1 = {'name': "buildbot-full", # name displayed on the webpage
'Slavename': "bot1name", # Name of slave. Do not forget it.
'Builddir': "full", # directory name to be generated in Master/Slave
'Factory ': F1,
}

C ['builders '] = [B1]

####### Status targets
C ['status'] = []
# Result submission method,
From buildbot. Status import html
C ['status']. append (html. webstatus (http_port = 8010 ))

####### Project identity
C ['projectname'] = "buildbot" # project name
C ['projecturl'] = "http://buildbot.sourceforge.net/" # project Homepage

C ['buildboturl'] = "http: // localhost: 8010/" # URL of the browser result

Reference
Http://blog.chinaunix.net/u2/68938/showart_1076484.html
Http://buildbot.net/repos/release/docs/buildbot.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.