Selaa lähdekoodia

Hello World example builder

covid-videoplattform
vanhempi
commit
f66d0a38c4
2 muutettua tiedostoa jossa 22 lisäystä ja 0 poistoa
  1. +2
    -0
      defaults/main.yaml
  2. +20
    -0
      templates/buildbot/master.cfg.j2

+ 2
- 0
defaults/main.yaml Näytä tiedosto

@@ -7,3 +7,5 @@ buildbot_db_pass: "{{ ansible_local.buildbot.database_password }}"
buildbot_server_name: "{{ inventory_hostname }}"

buildbot_builders: {}

buildbot_hello_world_example: true

+ 20
- 0
templates/buildbot/master.cfg.j2 Näytä tiedosto

@@ -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()


Loading…
Peruuta
Tallenna