|
@@ -20,6 +20,7 @@ c['builders'] = [] |
|
|
factory = util.BuildFactory() |
|
|
factory = util.BuildFactory() |
|
|
|
|
|
|
|
|
{% for repo in builder.repos %} |
|
|
{% for repo in builder.repos %} |
|
|
|
|
|
{% if repo.type | default('github') == 'github' %} |
|
|
factory.addStep(steps.GitHub( |
|
|
factory.addStep(steps.GitHub( |
|
|
name='{{repo.name}}', |
|
|
name='{{repo.name}}', |
|
|
repourl='{{repo.repourl}}', |
|
|
repourl='{{repo.repourl}}', |
|
@@ -27,6 +28,17 @@ factory.addStep(steps.GitHub( |
|
|
workdir='{{repo.workdir}}', |
|
|
workdir='{{repo.workdir}}', |
|
|
alwaysUseLatest=True, |
|
|
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 %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
{% for cmd in builder.shell_commands %} |
|
|
{% for cmd in builder.shell_commands %} |
|
|