summaryrefslogtreecommitdiffstats
path: root/jjb/integration/integration-templates.yaml
blob: 622d523a7771e5637807ce80117a6669230793a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
- job-template:
    # Job template for verifying Vagrantfiles
    #
    # The purpose of this job template is to run:
    # vagrant validate

    name: '{project-name}-{stream}-verify-vagrantfile'
    project-type: freestyle
    description: 'Job intended for validating vagrantfiles'
    node: ubuntu1804-builder-4c-4g

    parameters:
      - lf-infra-parameters:
          project: '{project}'
          stream: '{stream}'
          branch: '{branch}'

    properties:
      - infra-properties:
          build-days-to-keep: '{build-days-to-keep}'

    scm:
      - gerrit-trigger-scm:
          refspec: '$GERRIT_REFSPEC'
          choosing-strategy: 'gerrit'
          submodule-recursive: '{submodule-recursive}'

    wrappers:
      - infra-wrappers:
          build-timeout: '{build-timeout}'

    triggers:
      - gerrit-trigger-patch-submitted:
          server: '{server-name}'
          project: '{project}'
          branch: '{branch}'
          files: '**/Vagrantfile'

    builders:
      - integration-install-vagrant
      - shell: !include-raw-escape: 'vagrantfile-verify.sh'

    publishers:
      - lf-infra-publish

- job-template: &tox_verify_boilerplate
    # Job template for running linters against specific file formats
    #
    # Required Variables:
    #     python-version: Python version to deploy in venv
    #     tox-env:        Tox environments to run
    #     tox-dir:        Directory containing the project's tox.ini
    #     pattern:        List of file patterns to scan

    name: '{project-name}-{stream}-{subproject}-lint'
    id: integration-linters
    project-type: freestyle
    description: 'Job intended for running linters with Tox and Coala'
    build-node: ubuntu1804-builder-4c-4g
    node: '{build-node}'

    parameters:
      - lf-infra-parameters:
          project: '{project}'
          stream: '{stream}'
          branch: '{branch}'
      - lf-infra-tox-parameters:
          tox-dir: '{tox-dir}'
          tox-envs: '{tox-envs}'

    properties:
      - infra-properties:
          build-days-to-keep: '{build-days-to-keep}'

    scm:
      - gerrit-trigger-scm:
          refspec: '$GERRIT_REFSPEC'
          choosing-strategy: 'gerrit'
          submodule-recursive: '{submodule-recursive}'

    wrappers:
      - infra-wrappers:
          build-timeout: '{build-timeout}'

    triggers:
      - gerrit-trigger-patch-submitted:
          server: '{server-name}'
          project: '{project}'
          branch: '{branch}'
          files: '{pattern}'

    builders:
      - lf-infra-tox-install:
          python-version: '{python-version}'
      - lf-infra-tox-run:
          parallel: 'false'

    publishers:
      - lf-infra-publish

- job-template:
    <<: *tox_verify_boilerplate
    name: '{project-name}-{stream}-{subproject}-tox-verify'
    id: integration-tox-verify
    description: 'Job intended for running tox'