From 8e957774f72ff3f81e240492ce8f7c0edc9a94e3 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 4 May 2020 22:46:25 +0200 Subject: [PATCH] gitea checkout buildstep --- templates/buildbot/master.cfg.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/buildbot/master.cfg.j2 b/templates/buildbot/master.cfg.j2 index c11629e..231c716 100644 --- a/templates/buildbot/master.cfg.j2 +++ b/templates/buildbot/master.cfg.j2 @@ -20,6 +20,7 @@ c['builders'] = [] factory = util.BuildFactory() {% for repo in builder.repos %} +{% if repo.type | default('github') == 'github' %} factory.addStep(steps.GitHub( name='{{repo.name}}', repourl='{{repo.repourl}}', @@ -27,6 +28,17 @@ factory.addStep(steps.GitHub( workdir='{{repo.workdir}}', alwaysUseLatest=True, )) +{% elif repo.type == 'gitea' %} +factory.addStep(steps.Gitea( +name='{{repo.name}}', +repourl='{{repo.repourl}}', + mode='incremental', + workdir='{{repo.workdir}}', + branch="master", + progress=True, + logEnviron=False, +)) +{% endif %} {% endfor %} {% for cmd in builder.shell_commands %}