3 # Job template for verifying Vagrantfiles
5 # The purpose of this job template is to run:
8 name: "{project-name}-{stream}-verify-vagrantfile"
9 project-type: freestyle
10 description: "Job intended for validating vagrantfiles"
11 node: ubuntu1804-builder-4c-4g
14 - lf-infra-parameters:
21 build-days-to-keep: "{build-days-to-keep}"
25 refspec: "$GERRIT_REFSPEC"
26 choosing-strategy: "gerrit"
27 submodule-recursive: "{submodule-recursive}"
31 build-timeout: "{build-timeout}"
34 - gerrit-trigger-patch-submitted:
35 server: "{server-name}"
38 files: "**/Vagrantfile"
41 - integration-install-vagrant
42 - shell: !include-raw-escape: "vagrantfile-verify.sh"
47 - job-template: &tox_verify_boilerplate
48 # Job template for running linters against specific file formats
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
56 name: "{project-name}-{stream}-{subproject}-lint"
57 id: integration-linters
58 project-type: freestyle
59 description: "Job intended for running linters with Tox and Coala"
60 build-node: centos8-builder-2c-1g
64 - lf-infra-parameters:
68 - lf-infra-tox-parameters:
70 tox-envs: "{tox-envs}"
74 build-days-to-keep: "{build-days-to-keep}"
78 refspec: "$GERRIT_REFSPEC"
79 choosing-strategy: "gerrit"
80 submodule-recursive: "{submodule-recursive}"
84 build-timeout: "{build-timeout}"
87 - gerrit-trigger-patch-submitted:
88 server: "{server-name}"
94 - lf-infra-tox-install:
95 python-version: "{python-version}"
103 <<: *tox_verify_boilerplate
104 name: "{project-name}-{stream}-{subproject}-tox-verify"
105 id: integration-tox-verify
106 description: "Job intended for running tox"
109 <<: *tox_verify_boilerplate
110 name: "{project-name}-{stream}-{subproject}-terraform-verify"
111 terraform-version: 0.13.2
112 terragrunt-version: 0.24.1
113 python-version: python3
114 id: integration-terraform-verify
115 description: "Job intended for validating terraform modules"
118 - lf-infra-parameters:
122 - lf-infra-tox-parameters:
124 tox-envs: "{tox-envs}"
125 - integration-terraform-version:
126 terraform-version: "{terraform-version}"
127 - integration-terragrunt-version:
128 terragrunt-version: "{terragrunt-version}"
131 - integration-install-terraform
132 - integration-install-terragrunt
133 - lf-infra-tox-install:
134 python-version: "{python-version}"