Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/builders.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-11 20:45:17 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-11 20:45:17 (GMT)
commitcb3c450563cc364834c01d32ca59e49f53336e69 (patch)
treeeb96ad1058090e9405a0952babcdc20e5f02608b /builders.py
parent1365f608c0af3997e6d44ed666e926a42f627843 (diff)
Upload docs using buildbot api
Diffstat (limited to 'builders.py')
-rw-r--r--builders.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/builders.py b/builders.py
index cb52fee..5e92a46 100644
--- a/builders.py
+++ b/builders.py
@@ -7,6 +7,7 @@ from buildbot.steps.shell import ShellCommand
from buildbot.config import BuilderConfig
from buildbot.locks import MasterLock
from buildbot.process.properties import WithProperties
+from buildbot.steps.transfer import DirectoryUpload
class PullCommand(ShellCommand):
@@ -74,11 +75,9 @@ def create_factory(config, env={}, full=False, distribute=False,
env=env))
if upload_docs:
- factory.addStep(ShellCommand(command=["make", "docs-upload"],
- description="uploading docs",
- descriptionDone="upload docs",
- warnOnFailure=True,
- env=env))
+ factory.addStep(DirectoryUpload(slavesrc="build/sugar-docs/html",
+ masterdest="~/public_html/docs",
+ url="~buildbot/docs"))
if snapshot:
filename = WithProperties("SNAPSHOT_FILENAME=sugar-snapshot-%s-%s.tar",