- Table Of Contents
- 1. Buildbot Tutorial
- 2. Buildbot Manual
- 2.1. Introduction
- 2.2. Installation
- 2.3. Concepts
- 2.4. Secret Management
- 2.5. Configuration
- 2.5.1. Configuring Buildbot
- 2.5.2. Global Configuration
- 2.5.3. Change Sources and Changes
- 2.5.5. Schedulers
- 2.5.6. Workers
- 2.5.7. Builder Configuration
- 2.5.8. Projects
- 2.5.9. Build Factories
- 2.5.10. Build Sets
- 2.5.11. Properties
- 2.5.12. Build Steps
- 2.5.12.1. Parameters Common to all Steps
- 2.5.12.2. Common Parameters of source checkout operations
- 2.5.12.3. Bzr
- 2.5.12.4. CVS
- 2.5.12.5. Darcs
- 2.5.12.6. Gerrit
- 2.5.12.7. GitHub
- 2.5.12.8. GitLab
- 2.5.12.9. Git
- 2.5.12.10. Mercurial
- 2.5.12.11. Monotone
- 2.5.12.12. P4
- 2.5.12.13. Repo
- 2.5.12.14. SVN
- 2.5.12.15. GitCommit
- 2.5.12.16. GitTag
- 2.5.12.17. GitPush
- 2.5.12.18. GitDiffInfo
- 2.5.12.19. ShellCommand
- 2.5.12.20. Shell Sequence
- 2.5.12.21. Compile
- 2.5.12.21. Compile
- 2.5.12.22. Configure
- 2.5.12.23. CMake
- 2.5.12.24. Visual C++
- 2.5.12.25. Cppcheck
- 2.5.12.26. Robocopy
- 2.5.12.27. Test
- 2.5.12.28. TreeSize
- 2.5.12.29. PerlModuleTest
- 2.5.12.30. SubunitShellCommand
- 2.5.12.31. HLint
- 2.5.12.32. MaxQ
- 2.5.12.33. Trigger
- 2.5.12.34. BuildEPYDoc
- 2.5.12.35. PyFlakes
- 2.5.12.36. Sphinx
- 2.5.12.37. PyLint
- 2.5.12.38. Trial
- 2.5.12.39. RemovePYCs
- 2.5.12.40. HTTP Requests
- 2.5.12.41. Worker Filesystem Steps
- 2.5.12.42. Transferring Files
- 2.5.12.44. MasterShellCommand
- 2.5.12.45. LogRenderable
- 2.5.12.47. SetProperty
- 2.5.12.46. Assert
- 2.5.12.48. SetProperties
- 2.5.12.49. SetPropertyFromCommand
- 2.5.12.51. RpmBuild
- 2.5.12.52. RpmLint
- 2.5.12.53. MockBuildSRPM Step
- 2.5.12.54. MockRebuild
- 2.5.12.55. DebPbuilder
- 2.5.12.57. DebLintian
- 2.5.13. Interlocks
- 2.5.14. Report Generators
- 2.5.15. Reporters
- 2.5.15.1. ReporterBase
- 2.5.15.2. BitbucketServerCoreAPIStatusPush
- 2.5.15.2. BitbucketServerCoreAPIStatusPush
- 2.5.15.3. BitbucketServerPRCommentPush
- 2.5.15.4. BitbucketServerStatusPush
- 2.5.15.6. GerritStatusPush
- 2.5.15.5. BitbucketStatusPush
- 2.5.15.7. GerritVerifyStatusPush
- 2.5.15.9. GitHubStatusPush
- 2.5.15.10. GitLabStatusPush
- 2.5.15.11. HttpStatusPush
- 2.5.15.12. IRC Bot
- 2.5.15.13. MailNotifier
- 2.5.15.14. PushjetNotifier
- 2.5.15.15. PushoverNotifier
- 2.5.15.16. Telegram Bot
- 2.5.15.17. ZulipStatusPush
- 2.5.16. Web Server
- 2.5.17. Change Hooks
- 2.5.18. Custom Services
- 2.5.19. DbConfig
- 2.5.20. Configurators
- 2.5.21. Manhole
- 2.5.22. Multimaster
- 2.5.23. Multiple-Codebase Builds
- 2.5.24. Miscellaneous Configuration
- 2.5.25. Testing Utilities
- 2.6. Customization
- 2.7. Command-line Tool
- 2.8. Resources
- 2.9. Optimization
- 2.10. Plugin Infrastructure in Buildbot
- 2.11. Deployment
- 2.12. Upgrading
- 3. Buildbot Development
- 3.1. Development Quick-start
- 3.2. Submitting Pull Requests
- 3.3. General Documents
- 3.3.1. Master Organization
- 3.3.2. Buildbot Coding Style
- 3.3.3. Buildbot’s Test Suite
- 3.3.4. Configuration
- 3.3.6. Writing Schedulers
- 3.3.7. Utilities
- 3.3.8. Build Result Codes
- 3.3.9. WWW Server
- 3.3.10. Javascript Data Module
- 3.3.11. Base web application
- 3.3.12. Authentication
- 3.3.13. Authorization
- 3.3.14. Master-Worker API
- 3.3.15. Master-Worker connection with MessagePack over WebSocket protocol
- 3.3.16. Claiming Build Requests
- 3.3.17. String Encodings
- 3.3.18. Metrics
- 3.3.19. Secrets
- 3.3.22. Statistics Service
- 3.3.23. How to package Buildbot plugins
- 3.4. REST API
- 3.5. REST API Specification
- 3.5.1. builder
- 3.5.2. buildrequest
- 3.5.3. build
- 3.5.4. buildset
- 3.5.5. build_data
- 3.5.6. change
- 3.5.7. changesource
- 3.5.8. forcescheduler
- 3.5.9. identifier
- 3.5.10. logchunk
- 3.5.11. log
- 3.5.12. master
- 3.5.13. patch
- 3.5.14. project
- 3.5.15. rootlink
- 3.5.16. scheduler
- 3.5.17. sourcedproperties
- 3.5.18. sourcestamp
- 3.5.19. spec
- 3.5.20. step
- 3.5.21. worker
- 3.5.22. test_result
- 3.5.23. testresultset
- 3.5.24. Raw endpoints
- 3.6. Data API
- 3.7. Database
- 3.8.1. Buildsets connector
- 3.8.2. Buildrequests connector
- 3.8.3. Builders connector
- 3.8.4. Builds connector
- 3.8.5. Build data connector
- 3.8.6. Steps connector
- 3.8.7. Logs connector
- 3.8.8. Changes connector
- 3.8.9. Change sources connector
- 3.8.10. Schedulers connector
- 3.8.11. Source stamps connector
- 3.8.12. State connector
- 3.8.13. Users connector
- 3.8.14. Masters connector
- 3.8.15. Workers connector
- 3.8. Database connectors API
- 3.9. Messaging and Queues
- 3.10. Classes
- 3.10.1. Builds
- 3.10.2. Workers
- 3.10.3. BuildFactory
- 3.10.4. Change Sources
- 3.10.5. RemoteCommands
- 3.10.6. BuildSteps
- 3.10.7. BaseScheduler
- 3.10.8. ForceScheduler
- 3.10.9. IRenderable
- 3.10.10. IProperties
- 3.10.11. IConfigurator
- 3.10.12. ResultSpecs
- 3.10.13. Protocols
- 3.10.14. WorkerManager
- 3.10.15. Logs
- 3.10.16. LogObservers
- 3.10.17. Authentication
- 3.10.18. Avatars
- 3.10.19. Web Server Classes
- 4. Release Notes
- 6. API Indices
- Release Notes
- 5.1. Buildbot 2.10.5 ( 2021-04-05 )
- 5.29. Release Notes for Buildbot 1.8.2 ( 2019-05-22 )
- 5.42. Release Notes for Buildbot 0.9.15.post1 ( 2018-01-07 )
- 5.60. Release Notes for Buildbot 0.9.1
- 5.61. Release Notes for Buildbot 0.9.0
- 5.62. Release Notes for Buildbot 0.9.0rc4
- 5.63. Release Notes for Buildbot 0.9.0rc3
- 5.64. Release Notes for Buildbot 0.9.0rc2
- 5.65. Release Notes for Buildbot 0.9.0rc1
- 5.66. Release Notes for Buildbot 0.9.0b9
- 5.67. Release Notes for Buildbot 0.9.0b8
- 5.68. Release Notes for Buildbot 0.9.0b7
- 5.69. Release Notes for Buildbot 0.9.0b6
- 5.70. Release Notes for Buildbot 0.9.0b5
- 5.71. Release Notes for Buildbot 0.9.0b4
- 5.72. Release Notes for Buildbot 0.9.0b3
- 5.73. Release Notes for Buildbot 0.9.0b2
- 5.74. Release Notes for Buildbot 0.9.0b1
- 5.75. Release Notes for Buildbot 0.8.11
- 5.76. Release Notes for Buildbot 0.8.10
- 5.77. Release Notes for Buildbot 0.8.9
- 5.78. Release Notes for Buildbot v0.8.8
- 5.79. Release Notes for Buildbot v0.8.7
- 5.80. Release Notes for Buildbot v0.8.6p1
- Other
5.77. Release Notes for Buildbot 0.8.9
Caution
Buildbot no longer supports Python 2.7 on the Buildbot master.
5.77. Release Notes for Buildbot 0.8.9
The following are the release notes for Buildbot 0.8.9. Buildbot 0.8.9 was released on 14 June, 2014.
5.77.1. Master
5.77.1.1. Features
- The following optional parameters have been added to
EC2LatentBuildSlave
Boolean parameter
spot_instance
, default False, creates a spot instance.Float parameter
max_spot_price
defines the maximum bid for a spot instance.List parameter
volumes
, takes a list of (volume_id, mount_point) tuples.String parameter
placement
is appended to theregion
parameter, e.g.region='us-west-2', placement='b'
will result in the spot request being placed in us-west-2b.Float parameter
price_multiplier
specifies the percentage bid above the 24-hour average spot price.Dict parameter
tags
specifies AWS tags as key/value pairs to be applied to new instances.
With
spot_instance=True
, anEC2LatentBuildSlave
will attempt to create a spot instance with the provided spot price, placement, and so on.- The following optional parameters have been added to
The web hooks now include support for Bitbucket, GitLab and Gitorious.
The GitHub webhook has been updated to work with v3 of the GitHub webhook API.
The GitHub webhook can now optionally ignore non-distinct commits (bug #1861).
The
HgPoller
andGitPoller
now split filenames on newlines, rather than whitespace, so files containing whitespace are handled correctly.Add ‘pollAtLaunch’ flag for polling change sources. This allows a poller to poll immediately on launch and get changes that occurred while it was down.
Added the
BitbucketPullrequestPoller
changesource.The
GitPoller
can now be configured to poll all available branches (pull request 1010).The
P4Source
changesource now supports Perforce servers in a different timezone than the buildbot master (pull request 728).Each Scheduler type can now take a ‘reason’ argument to customize the reason it uses for triggered builds.
A new argument
createAbsoluteSourceStamps
has been added toSingleBranchScheduler
for use with multiple codebases.A new argument
createAbsoluteSourceStamps
has been added toNightly
for use with multiple codebases.The
Periodic
scheduler now supports codebases.The
ForceScheduler
now takes abuttonName
argument to specify the name of the button on the force-build form.Master side source checkout steps now support patches (bug #2098). The
Git
andMercurial
steps use their inbuilt commands to apply patches (bug #2563).Master side source checkout steps now support retry option (bug #2465).
Master-side source checkout steps now respond to the “stop build” button (bug #2356).
Git
source checkout step now supports reference repositories.The
Git
step now uses the git clean option -f twice, to also remove untracked directories managed by another git repository. See bug #2560.The
branch
andcodebase
arguments to theGit
step are now renderable.Gerrit integration with
Git
Source step on master side (bug #2485).P4
source step now supports more advanced options.The master-side
SVN
step now supports authentication for mode=export, fixing bug #2463.The
SVN
step will now canonicalize URL’s before matching them for better accuracy.The
SVN
step now obfuscates the password in status logs, fixing bug #2468.SVN
source step and ShellCommand now support password obfuscation. (bug #2468 and bug #1748).CVS
source step now checks for “sticky dates” from a previous checkout before updating an existing source directory.:
Repo
now supports adepth
flag when initializing the repo. This controls the amount of git history to download.The
manifestBranch
of the bb:step:Repo step is now renderableNew source step
Monotone
added on master side.New source step
Darcs
added on master side.A new
Robocopy
step is available for Windows builders (pull request 728).The attributes
description
,descriptionDone
anddescriptionSuffix
have been moved fromShellCommand
to its superclassBuildStep
so that any class that inherits fromBuildStep
can provide a suitable description of itself.A new
FlattenList
Renderable has been added which can flatten nested lists.The
mode
parameter of the VS steps is now renderable (bug #2592).The
HTTPStep
step can make arbitrary HTTP requests from the master, allowing communication with external APIs. This new feature requires the optionaltxrequests
andrequests
Python packages.A new
MultipleFileUpload
step was added to allow uploading several files (or directories) in a single step.Information about the buildslaves (admin, host, etc) is now persisted in the database and available even if the slave is not connected.
Buildslave info can now be retrieved via Interpolate and a new
SetSlaveInfo
buildstep.The
GNUAutotools
factory now has a reconf option to run autoreconf before./configure
.Builder configurations can now include a
description
, which will appear in the web UI to help humans figure out what the builder does.The WebStatus builder page can now filter pending/current/finished builds by property parameters of the form
?property.<name>=<value>
.The WebStatus
StatusResourceBuilder
page can now take themaxsearch
argumentThe WebStatus has a new authz “view” action that allows you to require users to logged in to view the WebStatus.
The WebStatus now shows revisions (+ codebase) where it used to simply say “multiple rev”.
The Console view now supports codebases.
- The web UI for Builders has been updated:
shows the build ‘reason’ and ‘interested users’
shows sourcestamp information for builders that use multiple codebases (instead of the generic “multiple rev” placeholder that was shown before).
The waterfall and atom/rss feeds can be filtered with the
project
url parameter.The WebStatus
Authorization
support now includes aview
action which can be used to restrict read-only access to the Buildbot instance.The web status now has options to cancel some or all pending builds.
The WebStatus now interprets ANSI color codes in stdio output.
It is now possible to select categories to show in the waterfall help
The web status now automatically scrolls output logs (pull request 1078).
The web UI now supports a PNG Status Resource that can be accessed publicly from for example README.md files or wikis or whatever other resource. This view produces an image in PNG format with information about the last build for the given builder name or whatever other build number if is passed as an argument to the view.
Revision links for commits on SouceForge (Allura) are now automatically generated.
The ‘Rebuild’ button on the web pages for builds features a dropdown to choose whether to rebuild from exact revisions or from the same sourcestamps (ie, update branch references)
Build status can be sent to GitHub. Depends on txgithub package. See
GitHubStatusPush
and GitHub Commit Status.The IRC bot of
IRC
will, unless useRevisions is set, shorten long lists of revisions printed when a build starts; it will only show two, and the number of additional revisions included in the build.A new argument
summaryCB
has been added toGerritStatusPush
, to allow sending one review per buildset. Sending a single “summary” review per buildset is now the default if neithersummaryCB
norreviewCB
are specified.The
comments
field of changes is no longer limited to 1024 characters on MySQL and Postgres. See bug #2367 and pull request 736.HTML log files are no longer stored in status pickles (pull request 1077)
Builds are now retried after a slave is lost (pull request 1049).
The buildbot status client can now access a build properties via the
getProperties
call.The
start
,restart
, andreconfig
commands will now wait for longer than 10 seconds as long as the master continues producing log lines indicating that the configuration is progressing.Added new config option
protocols
which allows to configure multiple protocols on single master.RemoteShellCommands can be killed by SIGTERM with the sigtermTime parameter before resorting to SIGKILL (bug #751). If the slave’s version is less than 0.8.9, the slave will kill the process with SIGKILL regardless of whether sigtermTime is supplied.
Introduce an alternative way to deploy Buildbot and try the pyflakes tutorial using Docker.
Added zsh and bash tab-completions support for ‘buildbot’ command.
An example of a declarative configuration is included in
master/contrib/SimpleConfig.py
, with copious comments.Systemd unit files for Buildbot are available in the master/contrib/ directory.
We’ve added some extra checking to make sure that you have a valid locale before starting buildbot (#2608).
5.77.1.2. Forward Compatibility
In preparation for a more asynchronous implementation of build steps in Buildbot 0.9.0, this version introduces support for new-style steps. Existing old-style steps will continue to function correctly in Buildbot 0.8.x releases and in Buildbot 0.9.0, but support will be dropped soon afterward. See New-Style Build Steps in Buildbot 0.9.0, below, for guidance on rewriting existing steps in this new style. To eliminate ambiguity, the documentation for this version only reflects support for new-style steps. Refer to the documentation for previous versions for information on old-style steps.
5.77.1.3. Fixes
Fixes an issue where
GitPoller
sets the change branch torefs/heads/master
- which isn’t compatible withGit
(pull request 1069).Fixed an issue where the
Git
andCVS
source steps silently changed theworkdir
to'build'
when the ‘copy’ method is used.The
CVS
source step now respects the timeout parameter.The
Git
step now uses the git submodule update option –init when updating the submodules of an existing repository, so that it will receive any newly added submodules.The web status no longer relies on the current working directory, which is not set correctly by some initscripts, to find the
templates/
directory (bug #2586).The Perforce source step uses the correct path separator when the master is on Windows and the build slave is on a POSIX OS (pull request 1114).
The source steps now correctly interpolate properties in
env
.GerritStatusPush
now supports setting scores with Gerrit 2.6 and newerThe change hook no longer fails when passing unicode to
change_hook_auth
(pull request 996).The source steps now correctly interpolate properties in
env
.Whitespace is properly handled for StringParameter, so that appropriate validation errors are raised for
required
parameters (pull request 1084).Fix a rare case where a buildtep might fail from a GeneratorExit exception (pull request 1063).
Fixed an issue where UTF-8 data in logs caused RSS feed exceptions (bug #951).
Fix an issue with unescaped author names causing invalid RSS feeds (bug #2596).
Fixed an issue with pubDate format in feeds.
Fixed an issue where the step text value could cause a
TypeError
in the build detail page (pull request 1061).Fix failures where
git clean
fails but could be clobbered (pull request 1058).Build step now correctly fails when the git clone step fails (pull request 1057).
Fixed a race condition in slave shutdown (pull request 1019).
Now correctly unsubscribes StatusPush from status updates when reconfiguring (pull request 997).
Fixes parsing git commit messages that are blank.
Git
no longer fails when work dir exists but isn’t a checkout (bug #2531).The haltOnFailure and flunkOnFailure attributes of
ShellCommand
are now renderable. (bug #2486).The rotateLength and maxRotatedFile arguments are no longer treated as strings in
buildbot.tac
. This fixes log rotation. The upgrade_master command will notify users if they have this problem.Buildbot no longer specifies a revision when pulling from a mercurial (bug #438).
The WebStatus no longer incorrectly refers to fields that might not be visible.
The GerritChangeSource now sets a default author, fixing an exception that occurred when Gerrit didn’t report an owner name/email.
Respects the
RETRY
status when an interrupt occurs.Fixes an off-by-one error when the tryclient is finding the current git branch.
Improve the Mercurial source stamp extraction in the try client.
Fixes some edge cases in timezone handling for python <
2.7.4
(bug #2522).The
EC2LatentBuildSlave
will now only consider available AMI’s.Fixes a case where the first build runs on an old slave instead of a new one after reconfig (bug #2507).
The e-mail address validation for the MailNotifier status receiver has been improved.
The
--db
parameter ofbuildbot create-master
is now validated.No longer ignores default choice for ForceScheduler list parameters
Now correctly handles
BuilderConfig(..., mergeRequests=False)
(bug #2555).Now excludes changes from sourcestamps when they aren’t in the DB (bug #2554).
Fixes a compatibility issue with HPCloud in the OpenStack latent slave.
Allow
_
as a valid character in JSONP callback names.Fix build start time retrieval in the WebStatus grid view.
Increase the length of the DB fields
changes.comments
andbuildset_properties.property_value
.
5.77.1.4. Deprecations, Removals, and Non-Compatible Changes
The slave-side source steps are deprecated in this version of Buildbot, and master-side support will be removed in a future version. Please convert any use of slave-side steps (imported directly from
buildbot.steps.source
, rather than from a specific module likebuildbot.steps.source.svn
) to use master-side steps.Both old-style and new-style steps are supported in this version of Buildbot. Upgrade your steps to new-style now, as support for old-style steps will be dropped after Buildbot-0.9.0. See New-Style Build Steps in Buildbot 0.9.0 for details.
The
LoggingBuildStep
class has been deprecated, and support will be removed along with support for old-style steps after the Buildbot-0.9.0 release. Instead, subclassBuildStep
and mix inShellMixin
to get similar behavior.
slavePortnum
option deprecated, please usec['protocols']['pb']['port']
to set up PB portThe
buildbot.process.mtrlogobserver
module have been renamed tobuildbot.steps.mtrlogobserver
.The buildmaster now requires at least Twisted-11.0.0.
The buildmaster now requires at least sqlalchemy-migrate 0.6.1.
The
hgbuildbot
Mercurial hook has been moved tocontrib/
, and does not work with recent versions of Mercurial and Twisted. The runtimes for these two tools are incompatible, yethgbuildbot
attempts to run both in the same Python interpreter. Mayhem ensues.The try scheduler’s
--connect=ssh
method no longer supports waiting for results (--wait
).The former
buildbot.process.buildstep.RemoteCommand
class and its subclasses are now inbuildbot.process.remotecommand
, although imports from the previous path will continue to work. Similarly, the formerbuildbot.process.buildstep.LogObserver
class and its subclasses are now inbuildbot.process.logobserver
, although imports from the previous path will continue to work.The undocumented BuildStep method
checkDisconnect
is deprecated and now does nothing as the handling of disconnects is now handled in thefailed
method. Any custom steps adding this method as a callback or errback should no longer do so.The build step
MsBuild
is now calledMsBuild4
as multiple versions are now supported. An alias is provided so existing setups will continue to work, but this will be removed in a future release.
5.77.1.5. Changes for Developers
The
CompositeStepMixin
now provides arunGlob
method to check for files on the slave that match a given shell-style pattern.The
BuilderStatus
now allows you to pass afilter_fn
argument togenerateBuilds
.
5.77.2. Slave
5.77.2.1. Features
Added zsh and bash tab-completions support for ‘buildslave’ command.
RemoteShellCommands accept the new sigtermTime parameter from master. This allows processes to be killed by SIGTERM before resorting to SIGKILL (bug #751)
Commands will now throw a
ValueError
if mandatory args are not present.Added a new remote command
GlobPath
that can be used to call Python’sglob.glob
on the slave.
5.77.2.2. Fixes
Fixed an issue when buildstep stop() was raising an exception incorrectly if timeout for buildstep wasn’t set or was None (see pull request 753) thus keeping watched logfiles open (this prevented their removal on Windows in subsequent builds).
Fixed a bug in P4 source step where the
timeout
parameter was ignored.Fixed a bug in P4 source step where using a custom view-spec could result in failed syncs due to incorrectly generated command-lines.
The logwatcher will use
/usr/xpg4/bin/tail
on Solaris, it if is available (pull request 1065).
5.77.2.3. Deprecations, Removals, and Non-Compatible Changes
5.77.3. Details
For a more detailed description of the changes made in this version, see the git log itself:
git log v0.8.8..v0.8.9
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论