|
|
@@ -15,6 +15,26 @@ c['schedulers'] = [] |
|
|
|
|
|
|
|
c['builders'] = [] |
|
|
|
|
|
|
|
# Hello World Example |
|
|
|
{% if buildbot_hello_world_example %} |
|
|
|
|
|
|
|
factory = util.BuildFactory() |
|
|
|
factory.addStep(steps.Git(repourl='git://github.com/buildbot/hello-world.git', mode='incremental')) |
|
|
|
factory.addStep(steps.ShellCommand(command=["trial", "hello"], env={"PYTHONPATH": "."})) |
|
|
|
|
|
|
|
c['builders'].append( |
|
|
|
util.BuilderConfig(name="hello-world", |
|
|
|
workernames=["local-worker"], |
|
|
|
factory=factory)) |
|
|
|
|
|
|
|
c['schedulers'].append(schedulers.ForceScheduler( |
|
|
|
name="force-hello-world", |
|
|
|
builderNames=["hello-world"], |
|
|
|
) |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
# Ansible Defined Builders |
|
|
|
{% for builder_name in buildbot_builders.keys() %} |
|
|
|
{% set builder = buildbot_builders[builder_name] %} |
|
|
|
factory = util.BuildFactory() |
|
|
|