Skip to content

Commit

Permalink
More Interpolate docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince committed Sep 20, 2012
1 parent c4d609e commit 04ae8c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion master/docs/manual/cfg-properties.rst
Expand Up @@ -108,7 +108,7 @@ Source Stamp Attributes
``repository``
``project``
``codebase``
For details of these attributes see :ref:`Source-Stamps`.
For details of these attributes see :ref:`Concepts`.

``changes``
This attribute is a list of dictionaries reperesnting the changes that make up this sourcestamp.
Expand Down Expand Up @@ -246,6 +246,13 @@ The following ways of interpreting the value are available.

Although these are similar to shell substitutions, no other substitutions are currently supported.

Example ::

from buildbot.steps.shell import ShellCommand
from buildbot.process.properties import Interpolate
f.addStep(ShellCommand(command=[ 'make', Interpolate('REVISION=%(prop:got_revision:-%(src::revision:-unknwon)s)s')
'dist' ]))

In addition, ``Interpolate`` supports using positional string interpolation.
Here, ``%s`` is used as a placeholder, and the substitutions (which may themselves be placeholders), are given as subsequent arguments::

Expand Down

0 comments on commit 04ae8c6

Please sign in to comment.