Parcourir la source

Hello World example builder

covid-videoplattform
Parent
révision
f66d0a38c4
2 fichiers modifiés avec 22 ajouts et 0 suppressions
  1. +2
    -0
      defaults/main.yaml
  2. +20
    -0
      templates/buildbot/master.cfg.j2

+ 2
- 0
defaults/main.yaml Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer