瀏覽代碼

Hello World example builder

covid-videoplattform
父節點
當前提交
f66d0a38c4
共有 2 個檔案被更改,包括 22 行新增0 行删除
  1. +2
    -0
      defaults/main.yaml
  2. +20
    -0
      templates/buildbot/master.cfg.j2

+ 2
- 0
defaults/main.yaml 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存