Ticket #305: stepinstances.diff
| File stepinstances.diff, 4.2 kB (added by albertHofkamp, 5 months ago) |
|---|
-
buildbot.texinfo
old new 4380 4380 language setting, you might use 4381 4381 4382 4382 @example 4383 f.addStep(ShellCommand ,command=["make", "test"],4384 env=@{'LANG': 'fr_FR'@})4383 f.addStep(ShellCommand(command=["make", "test"], 4384 env=@{'LANG': 'fr_FR'@})) 4385 4385 @end example 4386 4386 4387 4387 These variable settings will override any existing ones in the … … 4394 4394 following: 4395 4395 4396 4396 @example 4397 f.addStep(ShellCommand, command=["make", "test"], 4398 env=@{'PYTHONPATH': ["/usr/local/lib/python2.3", 4399 "/home/buildbot/lib/python"] @}) 4397 f.addStep(ShellCommand( 4398 command=["make", "test"], 4399 env=@{'PYTHONPATH': ["/usr/local/lib/python2.3", 4400 "/home/buildbot/lib/python"] @})) 4400 4401 @end example 4401 4402 4402 4403 @item want_stdout … … 4426 4427 the build runs, and any new text will be sent over to the buildmaster. 4427 4428 4428 4429 @example 4429 f.addStep(ShellCommand, command=["make", "test"], 4430 logfiles=@{"triallog": "_trial_temp/test.log"@}) 4430 f.addStep(ShellCommand( 4431 command=["make", "test"], 4432 logfiles=@{"triallog": "_trial_temp/test.log"@})) 4431 4433 @end example 4432 4434 4433 4435 … … 4455 4457 display. 4456 4458 4457 4459 @example 4458 f.addStep(ShellCommand ,command=["make", "test"],4459 description=["testing"],4460 descriptionDone=["tests"])4460 f.addStep(ShellCommand(command=["make", "test"], 4461 description=["testing"], 4462 descriptionDone=["tests"])) 4461 4463 @end example 4462 4464 4463 4465 @end table … … 4592 4594 @example 4593 4595 from buildbot.steps.shell import ShellCommand, WithProperties 4594 4596 4595 f.addStep(ShellCommand ,4597 f.addStep(ShellCommand( 4596 4598 command=["tar", "czf", 4597 4599 WithProperties("build-%s.tar.gz", "revision"), 4598 "source"]) 4600 "source"])) 4599 4601 @end example 4600 4602 4601 4603 If this BuildStep were used in a tree obtained from Subversion, it … … 4614 4616 arguments: 4615 4617 4616 4618 @example 4617 f.addStep(ShellCommand ,4619 f.addStep(ShellCommand( 4618 4620 command=["tar", "czf", 4619 4621 WithProperties("build-%(revision)s.tar.gz"), 4620 "source"]) 4622 "source"])) 4621 4623 @end example 4622 4624 4623 4625 Don't forget the extra ``s'' after the closing parenthesis! This is … … 4743 4745 from buildbot.steps.python import BuildEPYDoc 4744 4746 4745 4747 ... 4746 f.addStep(BuildEPYDoc , command=["epydoc", "-o", "apiref", "source/mypkg"])4748 f.addStep(BuildEPYDoc(command=["epydoc", "-o", "apiref", "source/mypkg"])) 4747 4749 @end example 4748 4750 4749 4751 … … 4770 4772 from buildbot.steps.python import PyFlakes 4771 4773 4772 4774 ... 4773 f.addStep(PyFlakes , command=["pyflakes", "src"])4775 f.addStep(PyFlakes(command=["pyflakes", "src"])) 4774 4776 @end example 4775 4777 4776 4778 … … 4802 4804 from buildbot.steps.shell import ShellCommand 4803 4805 from buildbot.steps.transfer import FileUpload 4804 4806 4805 f.addStep(ShellCommand, command=["make", "docs"]) 4806 f.addStep(FileUpload, 4807 slavesrc="docs/reference.html", 4808 masterdest="~/public_html/ref.html") 4807 f.addStep(ShellCommand(command=["make", "docs"])) 4808 f.addStep(FileUpload(slavesrc="docs/reference.html", 4809 masterdest="~/public_html/ref.html")) 4809 4810 @end example 4810 4811 4811 4812 The @code{masterdest=} argument will be passed to os.path.expanduser, … … 4825 4826 from buildbot.steps.shell import ShellCommand 4826 4827 from buildbot.steps.transfer import FileUpload 4827 4828 4828 f.addStep(FileDownload 4829 mastersrc="~/todays_build_config.txt", 4830 slavedest="build_config.txt") 4831 f.addStep(ShellCommand, command=["make", "config"]) 4829 f.addStep(FileDownload(mastersrc="~/todays_build_config.txt", 4830 slavedest="build_config.txt")) 4831 f.addStep(ShellCommand(command=["make", "config"])) 4832 4832 @end example 4833 4833 4834 4834 Like @code{FileUpload}, the @code{mastersrc=} argument is interpreted … … 4871 4871 4872 4872 @example 4873 4873 from buildbot.steps.trigger import Trigger 4874 f.addStep(Trigger ,schedulerNames=['build-prep'],4875 waitForFinish=True,4876 updateSourceStamp=True)4874 f.addStep(Trigger(schedulerNames=['build-prep'], 4875 waitForFinish=True, 4876 updateSourceStamp=True)) 4877 4877 @end example 4878 4878 4879 4879 The @code{schedulerNames=} argument lists the Triggerables
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)