blob: 7d9ffed2101b1140a0eead634ad0c40489acd5aa [file] [log] [blame]
Bartek Grzybowski2dd05542020-02-07 15:10:03 +01001---
2- job-template:
3 # Job template for verifying Vagrantfiles
4 #
5 # The purpose of this job template is to run:
6 # vagrant validate
7
8 name: '{project-name}-{stream}-verify-vagrantfile'
9 project-type: freestyle
10 description: 'Job intended for validating vagrantfiles'
Bartek Grzybowski3e2712d2020-03-17 16:20:43 +010011 node: ubuntu1804-builder-4c-4g
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010012
13 parameters:
14 - lf-infra-parameters:
15 project: '{project}'
16 stream: '{stream}'
17 branch: '{branch}'
18
19 properties:
20 - infra-properties:
21 build-days-to-keep: '{build-days-to-keep}'
22
23 scm:
24 - gerrit-trigger-scm:
25 refspec: '$GERRIT_REFSPEC'
26 choosing-strategy: 'gerrit'
27 submodule-recursive: '{submodule-recursive}'
28
29 wrappers:
30 - infra-wrappers:
31 build-timeout: '{build-timeout}'
32
33 triggers:
34 - gerrit-trigger-patch-submitted:
35 server: '{server-name}'
36 project: '{project}'
37 branch: '{branch}'
38 files: '**/Vagrantfile'
39
40 builders:
41 - integration-install-vagrant
42 - shell: !include-raw-escape: 'vagrantfile-verify.sh'
43
44 publishers:
45 - lf-infra-publish
Bartek Grzybowski4d77b8e2020-02-26 11:43:35 +010046
47- job-template:
48 # Job template for running linters against specific file formats
49 #
50 # Required Variables:
51 # python-version: Python version to deploy in venv
52 # tox-env: Tox environments to run
53 # tox-dir: Directory containing the project's tox.ini
54 # pattern: List of file patterns to scan
55
56 name: '{project-name}-{stream}-{subproject}-lint'
57 project-type: freestyle
58 description: 'Job intended for running linters with Tox and Coala'
Bartek Grzybowskif6eef0b2020-03-12 15:43:20 +010059 build-node: ubuntu1804-builder-4c-4g
Bartek Grzybowski72248ba2020-03-10 15:45:05 +010060 node: '{build-node}'
Bartek Grzybowski4d77b8e2020-02-26 11:43:35 +010061
62 parameters:
63 - lf-infra-parameters:
64 project: '{project}'
65 stream: '{stream}'
66 branch: '{branch}'
67 - lf-infra-tox-parameters:
68 tox-dir: '{tox-dir}'
69 tox-envs: '{tox-envs}'
70
71 properties:
72 - infra-properties:
73 build-days-to-keep: '{build-days-to-keep}'
74
75 scm:
76 - gerrit-trigger-scm:
77 refspec: '$GERRIT_REFSPEC'
78 choosing-strategy: 'gerrit'
79 submodule-recursive: '{submodule-recursive}'
80
81 wrappers:
82 - infra-wrappers:
83 build-timeout: '{build-timeout}'
84
85 triggers:
86 - gerrit-trigger-patch-submitted:
87 server: '{server-name}'
88 project: '{project}'
89 branch: '{branch}'
90 files: '{pattern}'
91
92 builders:
93 - lf-infra-tox-install:
94 python-version: '{python-version}'
95 - lf-infra-tox-run:
96 parallel: 'false'
97
98 publishers:
99 - lf-infra-publish