Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9457b02689c69e152aa2cda68176fa51 > files > 145

buildbot-doc-0.8.4p1-2.fc16.noarch.rpm

<html lang="en">
<head>
<title>Property - BuildBot Manual - 0.8.4p1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="BuildBot Manual - 0.8.4p1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Using-Build-Properties.html#Using-Build-Properties" title="Using Build Properties">
<link rel="next" href="WithProperties.html#WithProperties" title="WithProperties">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is the BuildBot manual for Buildbot version 0.8.4p1.

Copyright (C) 2005, 2006, 2009, 2010 Brian Warner

Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are preserved.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Property"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="WithProperties.html#WithProperties">WithProperties</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Using-Build-Properties.html#Using-Build-Properties">Using Build Properties</a>
<hr>
</div>

<h5 class="subsubsection">4.12.2.1 Property</h5>

<p><a name="index-Property-79"></a>
You can use build properties in most step paramaters.  Please file bugs for any
parameters which do not accept properties.  The simplest form is to wrap the
property name with <code>Property</code>, passing an optional default argument.

<pre class="example">     from buildbot.steps.trigger import Trigger
     form buildbot.process.properties import Property
     
     f.addStep(Trigger(waitForFinish=False, schedulerNames=['build-dependents'], alwaysUseLatest=True,
     			set_properties={'coq_revision': Property("got_revision")}))
</pre>
   <p>You can specify a default value by passing a <code>default</code> argument to
<code>Property</code>. This is normally used when the property doesn't exist,
or when the value is something Python regards as "false". The <code>defaultWhenFalse</code>
argument can be used to force buildbot to use the default argument only
if the parameter is not set.

   </body></html>