[Buildbot-commits] buildbot/docs buildbot.texinfo,1.150,1.151

Brian Warner warner at users.sourceforge.net
Wed Jun 25 23:52:33 UTC 2008


Update of /cvsroot/buildbot/buildbot/docs
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26386/docs

Modified Files:
	buildbot.texinfo 
Log Message:
[project @ fix-docs.patch]
Fix my typos in the documentation, which were causing buildbot failures.

Original author: dustin at v.igoro.us
Date: 2008-06-25 18:05:23+00:00

Index: buildbot.texinfo
===================================================================
RCS file: /cvsroot/buildbot/buildbot/docs/buildbot.texinfo,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- buildbot.texinfo	27 May 2008 00:52:29 -0000	1.150
+++ buildbot.texinfo	25 Jun 2008 23:52:31 -0000	1.151
@@ -1894,7 +1894,7 @@
 user has been inactive on the channel), which might prompt the Problem
 Hassler logic to send them an email message instead.
 
- at node Live Status Clients,  , IRC Nicknames, Users
+ at node Live Status Clients
 @subsection Live Status Clients
 
 The Buildbot also offers a PB-based status client interface which can
@@ -1905,7 +1905,7 @@
 alternative way to deliver low-latency high-interruption messages to the
 developer (like ``hey, you broke the build'').
 
- at node Build Properties, , Users, Concepts
+ at node Build Properties
 @section Build Properties
 @cindex Properties
 
@@ -4929,7 +4929,6 @@
 * TreeSize::                    
 * PerlModuleTest::
 * SetProperty::                    
-* Build Properties::            
 @end menu
 
 @node Configure, Compile, Simple ShellCommand Subclasses, Simple ShellCommand Subclasses
@@ -4995,7 +4994,7 @@
 aka 'KiB' or 'kibibytes') on the step's status text, and sets a build
 property named 'tree-size-KiB' with the same value.
 
- at node PerlModuleTest, Build Properties, TreeSize, Simple ShellCommand Subclasses
+ at node PerlModuleTest
 @subsubsection PerlModuleTest
 
 @bsindex buildbot.steps.shell.PerlModuleTest
@@ -5047,178 +5046,7 @@
 Then @code{my_extract} will see @code{stdout="output1\noutput2\n"}
 and @code{stderr="error\n"}.
 
- at node Build Properties
- at subsubsection Build Properties
-
- at cindex build properties
-
-Each build has a set of ``Build Properties'', which can be used by its
-BuildStep to modify their actions. For example, the SVN revision
-number of the source code being built is available as a build
-property, and a ShellCommand step could incorporate this number into a
-command which create a numbered release tarball.
-
-Some build properties are set when the build starts, such as the
-SourceStamp information. Other properties can be set by BuildSteps as
-they run, for example the various Source steps will set the
- at code{got_revision} property to the source revision that was actually
-checked out (which can be useful when the SourceStamp in use merely
-requested the ``latest revision'': @code{got_revision} will tell you
-what was actually built).
-
- at itemize
- at item buildername
-Name of this builder
- at item buildnumber
-Number of this build (numbers are unique within the builder)
- at item branch
-Branch of the source being built, from the SourceStamp
- at item revision
-Revision of the source being built, from the SourceStamp, as a string
- at item scheduler
-The name of the scheduler that invoked this build
- at item slavename
-The name of the buildslave performing this build
- at end itemize
-
-In custom BuildSteps, you can get and set the build properties with
-the @code{getProperty}/@code{setProperty} methods. Each takes a string
-for the name of the property, and returns or accepts an
-arbitrary at footnote{Build properties are serialized along with the
-build results, so they must be serializable. For this reason, the
-value of any build property should be simple inert data: strings,
-numbers, lists, tuples, and dictionaries. They should not contain
-class instances.} object. For example:
-
- at example
-class MakeTarball(ShellCommand):
-    def start(self):
-        self.setCommand(["tar", "czf",
-                         "build-%s.tar.gz" % self.getProperty("revision"),
-                         "source"])
-        ShellCommand.start(self)
- at end example
-
- at cindex WithProperties
-
-You can use build properties in ShellCommands by using the
- at code{WithProperties} wrapper when setting the arguments of the
-ShellCommand. This interpolates the named build properties into the
-generated shell command. You can also use a @code{WithProperties} as
-the @code{workdir=} argument: this allows the working directory for a
-command to be varied for each build, depending upon various build
-properties.
-
- at example
-from buildbot.steps.shell import ShellCommand, WithProperties
-
-f.addStep(ShellCommand,
-          command=["tar", "czf",
-                   WithProperties("build-%s.tar.gz", "revision"),
-                   "source"])
- at end example
-
-If this BuildStep were used in a tree obtained from Subversion, it
-would create a tarball with a name like @file{build-1234.tar.gz}.
-
-The @code{WithProperties} function does @code{printf}-style string
-interpolation, using strings obtained by calling
- at code{build.getProperty(propname)}. Note that for every @code{%s} (or
- at code{%d}, etc), you must have exactly one additional argument to
-indicate which build property you want to insert.
-
-
-You can also use python dictionary-style string interpolation by using
-the @code{%(propname)s} syntax. In this form, the property name goes
-in the parentheses, and WithProperties takes @emph{no} additional
-arguments:
-
- at example
-f.addStep(ShellCommand,
-          command=["tar", "czf",
-                   WithProperties("build-%(revision)s.tar.gz"),
-                   "source"])
- at end example
-
-Don't forget the extra ``s'' after the closing parenthesis! This is
-the cause of many confusing errors. Also note that you can only use
-WithProperties in the list form of the command= definition. You cannot
-currently use it in the (discouraged) @code{command="stuff"}
-single-string form. However, you can use something like
- at code{command=["/bin/sh", "-c", "stuff", WithProperties(stuff)]} to
-use both shell expansion and WithProperties interpolation.
-
-Note that, like python, you can either do positional-argument
-interpolation @emph{or} keyword-argument interpolation, not both. Thus
-you cannot use a string like
- at code{WithProperties("foo-%(revision)s-%s", "branch")}.
-
-At the moment, the only way to set build properties is by writing a
-custom BuildStep.
-
- at heading Common Build Properties
-
-The following build properties are set when the build is started, and
-are available to all steps.
-
- at table @code
- at item branch
-
-This comes from the build's SourceStamp, and describes which branch is
-being checked out. This will be @code{None} (which interpolates into
- at code{WithProperties} as an empty string) if the build is on the
-default branch, which is generally the trunk. Otherwise it will be a
-string like ``branches/beta1.4''. The exact syntax depends upon the VC
-system being used.
-
- at item revision
-
-This also comes from the SourceStamp, and is the revision of the
-source code tree that was requested from the VC system. When a build
-is requested of a specific revision (as is generally the case when the
-build is triggered by Changes), this will contain the revision
-specification. The syntax depends upon the VC system in use: for SVN
-it is an integer, for Mercurial it is a short string, for Darcs it is
-a rather large string, etc.
-
-If the ``force build'' button was pressed, the revision will be
- at code{None}, which means to use the most recent revision available.
-This is a ``trunk build''. This will be interpolated as an empty
-string.
-
- at item got_revision
-
-This is set when a Source step checks out the source tree, and
-provides the revision that was actually obtained from the VC system.
-In general this should be the same as @code{revision}, except for
-trunk builds, where @code{got_revision} indicates what revision was
-current when the checkout was performed. This can be used to rebuild
-the same source code later.
-
-Note that for some VC systems (Darcs in particular), the revision is a
-large string containing newlines, and is not suitable for
-interpolation into a filename.
-
- at item buildername
-
-This is a string that indicates which Builder the build was a part of.
-The combination of buildername and buildnumber uniquely identify a
-build.
-
- at item buildnumber
-
-Each build gets a number, scoped to the Builder (so the first build
-performed on any given Builder will have a build number of 0). This
-integer property contains the build's number.
-
- at item slavename
-
-This is a string which identifies which buildslave the build is
-running on.
-
- at end table
-
- at node Python BuildSteps, Transferring Files, Simple ShellCommand Subclasses, Build Steps
+ at node Python BuildSteps
 @subsection Python BuildSteps
 
 Here are some BuildSteps that are specifcally useful for projects
@@ -5229,7 +5057,7 @@
 * PyFlakes::                    
 @end menu
 
- at node BuildEPYDoc, PyFlakes, Python BuildSteps, Python BuildSteps
+ at node BuildEPYDoc
 @subsubsection BuildEPYDoc
 
 @bsindex buildbot.steps.python.BuildEPYDoc
@@ -7242,7 +7070,7 @@
 message to the user who issued the command.  Otherwise, the report
 will be sent to the channel.  Available events to be notified are:
 
- at table
+ at table @code
 @item started
 A build has started
 @item finished





More information about the Commits mailing list