Add project-specific CSIT job template
[ci-management.git] / jjb / integration / integration-templates-csit.yaml
1 ---
2 - job-template:
3     name: '{project-name}-{stream}-verify-csit-{functionality}'
4     disabled: '{disabled}'
5
6     project-type: freestyle
7     build-node: 'ubuntu1804-docker-8c-8g'
8     node: '{build-node}'
9     recipients: ''
10     java-version: 'openjdk11'
11     python-version: python3
12
13     properties:
14       - lf-infra-properties:
15           project: 'integration/csit'
16           build-days-to-keep: '{build-days-to-keep}'
17
18     parameters:
19       - infra-parameters:
20           project: 'integration/csit'
21           branch: '{branch}'
22           refspec: 'refs/heads/{branch}'
23           artifacts: '{archive-artifacts}'
24       - integration-test-plan:
25           test-plan: 'plans/{project-name}/{functionality}'
26       - integration-test-options:
27           test-options: '{robot-options}'
28
29     scm:
30       - gerrit-trigger-scm:
31           refspec: '$GERRIT_REFSPEC'
32           choosing-strategy: 'gerrit'
33           submodule-recursive: '{submodule-recursive}'
34
35     wrappers:
36       - lf-infra-wrappers:
37           build-timeout: '{build-timeout}'
38           jenkins-ssh-credential: '{jenkins-ssh-credential}'
39
40     triggers:
41       - gerrit-trigger-patch-submitted:
42           server: '{server-name}'
43           project: 'integration/csit'
44           branch: '{branch}'
45           files: '**/{project-name}/**'
46
47     builders:
48       - lf-update-java-alternatives:
49           java-version: '{java-version}'
50       - integration-install-robotframework
51       - inject:
52           properties-file: 'env.properties'
53       - integration-run-test
54
55     publishers:
56       - integration-robot:
57           unstable-if: 0.0
58           pass-if: 100.0
59       - lf-infra-publish
60       - email:
61           recipients: '{recipients}'
62           notify-every-unstable-build: false
63           send-to-individuals: true
64
65 - job-template:
66     name: '{project-name}-{stream}-csit-{functionality}'
67     disabled: '{disabled}'
68
69     project-type: freestyle
70     build-node: 'ubuntu1804-docker-8c-8g'
71     node: '{build-node}'
72     recipients: ''
73     java-version: 'openjdk11'
74     python-version: python3
75
76     properties:
77       - lf-infra-properties:
78           project: 'integration/csit'
79           build-days-to-keep: '{build-days-to-keep}'
80
81     parameters:
82       - infra-parameters:
83           project: 'integration/csit'
84           branch: '{branch}'
85           refspec: 'refs/heads/{branch}'
86           artifacts: '{archive-artifacts}'
87       - integration-test-plan:
88           test-plan: 'plans/{project-name}/{functionality}'
89       - integration-test-options:
90           test-options: '{robot-options}'
91
92     scm:
93       - gerrit-trigger-scm:
94           refspec: ''
95           choosing-strategy: 'default'
96           submodule-recursive: '{submodule-recursive}'
97
98     wrappers:
99       - lf-infra-wrappers:
100           build-timeout: '{build-timeout}'
101           jenkins-ssh-credential: '{jenkins-ssh-credential}'
102
103     triggers:
104       - gerrit-trigger-patch-merged:
105           server: '{server-name}'
106           project: 'integration/csit'
107           branch: '{branch}'
108           files: '**/{project-name}/**'
109       - timed: '@daily'
110       - reverse:
111           jobs: '{obj:trigger_jobs}'
112
113     builders:
114       - lf-infra-pre-build
115       - lf-update-java-alternatives:
116           java-version: '{java-version}'
117       - integration-install-robotframework
118       - inject:
119           properties-file: 'env.properties'
120       - integration-run-test
121
122     publishers:
123       - integration-robot:
124           unstable-if: 0.0
125           pass-if: 100.0
126       - lf-infra-publish
127       - email:
128           recipients: '{recipients}'
129           notify-every-unstable-build: false
130           send-to-individuals: true
131
132 - job-template:
133     name: '{project-name}-{stream}-project-csit-{functionality}'
134     disabled: '{disabled}'
135
136     project-type: freestyle
137     build-node: 'ubuntu1804-docker-8c-8g'
138     node: '{build-node}'
139     recipients: ''
140     java-version: 'openjdk11'
141     python-version: python3
142
143     properties:
144       - lf-infra-properties:
145           project: '{project}'
146           build-days-to-keep: '{build-days-to-keep}'
147
148     parameters:
149       - infra-parameters:
150           project: '{project}'
151           branch: '{branch}'
152           refspec: 'refs/heads/{branch}'
153           artifacts: '{archive-artifacts}'
154       - integration-test-plan:
155           test-plan: 'plans/{functionality}'
156       - integration-test-options:
157           test-options: '{robot-options}'
158
159     scm:
160       - gerrit-trigger-scm:
161           refspec: '$GERRIT_REFSPEC'
162           choosing-strategy: 'gerrit'
163           submodule-recursive: '{submodule-recursive}'
164
165     wrappers:
166       - lf-infra-wrappers:
167           build-timeout: '{build-timeout}'
168           jenkins-ssh-credential: '{jenkins-ssh-credential}'
169
170     builders:
171       - lf-infra-pre-build
172       - lf-update-java-alternatives:
173           java-version: '{java-version}'
174       - integration-install-robotframework
175       - inject:
176           properties-file: 'env.properties'
177       - integration-run-project-test
178
179     publishers:
180       - integration-project-robot:
181           unstable-if: 0.0
182           pass-if: 100.0
183       - lf-infra-publish
184       - email:
185           recipients: '{recipients}'
186           notify-every-unstable-build: false
187           send-to-individuals: true
188
189 - job-template:
190     name: '{project-name}-unified-review-{stream}-test'
191     disabled: '{disabled}'
192     project-type: freestyle
193     build-node: 'ubuntu1804-docker-8c-8g'
194     java-version: 'openjdk11'
195
196     properties:
197       - lf-infra-properties:
198           project: '{project}'
199           build-days-to-keep: '{build-days-to-keep}'
200     parameters:
201       - infra-parameters:
202           project: '{project}'
203           branch: '{branch}'
204           refspec: 'refs/heads/{branch}'
205           artifacts: '{archive-artifacts}'
206     scm:
207       - gerrit-trigger-scm:
208           refspec: '$GERRIT_REFSPEC'
209           choosing-strategy: 'gerrit'
210           submodule-recursive: '{submodule-recursive}'
211     wrappers:
212       - lf-infra-wrappers:
213           build-timeout: '{build-timeout}'
214           jenkins-ssh-credential: '{jenkins-ssh-credential}'
215     builders:
216       - lf-infra-pre-build
217       - lf-maven-install:
218           mvn-version: "{mvn-version}"
219       - lf-update-java-alternatives:
220           java-version: "{java-version}"
221       - lf-provide-maven-settings:
222           global-settings-file: "{mvn-global-settings}"
223           settings-file: "{mvn-settings}"
224       - trigger-builds:
225          -  project: "{project-name}-{stream}-docker-golang-shell-daily"
226             condition: UNSTABLE_OR_BETTER
227             predefined-parameters: |
228               UNIQUE_DOCKER_TAG=$BUILD_TAG
229               PROJECT=$PROJECT
230               BRANCH=$BRANCH
231               GERRIT_REFSPEC=$GERRIT_REFSPEC
232             block: true
233       - trigger-builds:
234          -  project: '{project-name}-{stream}-project-csit-{review-functionality}'
235             condition: UNSTABLE_OR_BETTER
236             predefined-parameters: |
237               UNIQUE_DOCKER_TAG=$BUILD_TAG
238               PROJECT=$PROJECT
239               BRANCH=$BRANCH
240               GERRIT_REFSPEC=$GERRIT_REFSPEC
241             block: true
242     triggers:
243       - gerrit-trigger-patch-submitted:
244           server: '{server-name}'
245           project: '{project}'
246           branch: '{branch}'
247           files: '**'
248     publishers:
249       - lf-infra-publish
250