ci-management update for New Delhi release
[ci-management.git] / jjb / oom / oom-templates.yaml
1 ---
2 - job-template:
3     # Job template for running linters against specific file formats
4     #
5     # Required Variables:
6     #     python-version: Python version to deploy in venv
7     #     tox-env:        Tox environments to run
8     #     tox-dir:        Directory containing the project's tox.ini
9     #     pattern:        List of file patterns to scan
10
11     name: "{project-name}-{stream}-{subproject}-lint"
12     id: oom-linters
13     project-type: freestyle
14     description: "Job intended for running linters with Tox and Coala"
15     build-node: ubuntu1804-builder-4c-4g
16     node: "{build-node}"
17
18     parameters:
19       - lf-infra-parameters:
20           project: "{project}"
21           stream: "{stream}"
22           branch: "{branch}"
23       - lf-infra-tox-parameters:
24           tox-dir: "{tox-dir}"
25           tox-envs: "{tox-envs}"
26
27     properties:
28       - infra-properties:
29           build-days-to-keep: "{build-days-to-keep}"
30
31     scm:
32       - gerrit-trigger-scm:
33           refspec: "$GERRIT_REFSPEC"
34           choosing-strategy: "gerrit"
35           submodule-recursive: "{submodule-recursive}"
36
37     wrappers:
38       - infra-wrappers:
39           build-timeout: "{build-timeout}"
40
41     triggers:
42       - gerrit-trigger-patch-submitted:
43           server: "{server-name}"
44           project: "{project}"
45           branch: "{branch}"
46           files: "{pattern}"
47
48     builders:
49       - lf-infra-tox-install:
50           python-version: "{python-version}"
51       - lf-infra-tox-run:
52           parallel: "false"
53
54     publishers:
55       - lf-infra-publish