Merge "Rename project-specific CSIT PoC jobs"
[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     # Job template for project-specific CSIT jobs
134     #
135     # The purpose of this job template is to execute
136     # project-specific CSIT test cases for docker image versions 
137     # identified by unique docker tag input parameter
138     #
139
140     name: '{project-name}-{stream}-project-csit'
141     disabled: '{disabled}'
142     project-type: freestyle
143     build-node: 'ubuntu1804-docker-8c-8g'
144     node: '{build-node}'
145     recipients: ''
146     java-version: 'openjdk11'
147     python-version: python3
148
149     properties:
150       - lf-infra-properties:
151           project: '{project}'
152           build-days-to-keep: '{build-days-to-keep}'
153
154     parameters:
155       - infra-parameters:
156           project: '{project}'
157           branch: '{branch}'
158           refspec: 'refs/heads/{branch}'
159           artifacts: '{archive-artifacts}'
160       - integration-test-options:
161           test-options: '{robot-options}'
162       - integration-unique-docker-tag:
163           unique-docker-tag: ''
164
165     scm:
166       - gerrit-trigger-scm:
167           refspec: '$GERRIT_REFSPEC'
168           choosing-strategy: 'gerrit'
169           submodule-recursive: '{submodule-recursive}'
170
171     wrappers:
172       - lf-infra-wrappers:
173           build-timeout: '{build-timeout}'
174           jenkins-ssh-credential: '{jenkins-ssh-credential}'
175
176     builders:
177       - lf-infra-pre-build
178       - lf-update-java-alternatives:
179           java-version: '{java-version}'
180       - integration-install-robotframework
181       - inject:
182           properties-file: 'env.properties'
183       - integration-run-project-test
184
185     publishers:
186       - integration-project-robot:
187           unstable-if: 0.0
188           pass-if: 100.0
189       - lf-infra-publish
190       - email:
191           recipients: '{recipients}'
192           notify-every-unstable-build: false
193           send-to-individuals: true
194
195 - job-template:
196     # Job template for review verification jobs in 
197     # project-specific CSIT flow
198     #
199     # The purpose of this job template is to:
200     #  1. trigger snapshot docker build job
201     #  2. trigger CSIT job
202     #  3. give a verify vote to the triggering review
203     #
204
205     name: '{project-name}-review-verification-{stream}'
206     disabled: '{disabled}'
207     project-type: freestyle
208     build-node: 'ubuntu1804-docker-8c-8g'
209     java-version: 'openjdk11'
210
211     properties:
212       - lf-infra-properties:
213           project: '{project}'
214           build-days-to-keep: '{build-days-to-keep}'
215     parameters:
216       - infra-parameters:
217           project: '{project}'
218           branch: '{branch}'
219           refspec: 'refs/heads/{branch}'
220           artifacts: '{archive-artifacts}'
221     scm:
222       - gerrit-trigger-scm:
223           refspec: '$GERRIT_REFSPEC'
224           choosing-strategy: 'gerrit'
225           submodule-recursive: '{submodule-recursive}'
226     wrappers:
227       - lf-infra-wrappers:
228           build-timeout: '{build-timeout}'
229           jenkins-ssh-credential: '{jenkins-ssh-credential}'
230     builders:
231       - lf-infra-pre-build
232       - lf-maven-install:
233           mvn-version: "{mvn-version}"
234       - lf-update-java-alternatives:
235           java-version: "{java-version}"
236       - lf-provide-maven-settings:
237           global-settings-file: "{mvn-global-settings}"
238           settings-file: "{mvn-settings}"
239       - trigger-builds:
240          -  project: "{project-name}-{stream}-{artifact-type}-docker-snapshot"
241             predefined-parameters: |
242               UNIQUE_DOCKER_TAG=$BUILD_TAG
243               PROJECT=$PROJECT
244               BRANCH=$BRANCH
245               GERRIT_REFSPEC=$GERRIT_REFSPEC
246             block: true
247       - trigger-builds:
248          -  project: "{project-name}-{stream}-project-csit"
249             predefined-parameters: |
250               UNIQUE_DOCKER_TAG=$BUILD_TAG
251               PROJECT=$PROJECT
252               BRANCH=$BRANCH
253               GERRIT_REFSPEC=$GERRIT_REFSPEC
254             block: true
255     triggers:
256       - gerrit-trigger-patch-submitted:
257           server: '{server-name}'
258           project: '{project}'
259           branch: '{branch}'
260           files: '**'
261     publishers:
262       - lf-infra-publish
263
264 - job-template:
265     # Job template for merge verification jobs in 
266     # project-specific CSIT flow
267     #
268     # The purpose of this job template is to trigger
269     # the following jobs in sequence:
270     #  1. snapshot docker build job
271     #  2. CSIT job
272     #  3. docker staging job
273     #
274
275     name: '{project-name}-merge-verification-{stream}'
276     disabled: '{disabled}'
277     project-type: freestyle
278     build-node: 'ubuntu1804-docker-8c-8g'
279     java-version: 'openjdk11'
280
281     properties:
282       - lf-infra-properties:
283           project: '{project}'
284           build-days-to-keep: '{build-days-to-keep}'
285     parameters:
286       - infra-parameters:
287           project: '{project}'
288           branch: '{branch}'
289           refspec: 'refs/heads/{branch}'
290           artifacts: '{archive-artifacts}'
291     scm:
292       - gerrit-trigger-scm:
293           refspec: ''
294           choosing-strategy: 'default'
295           submodule-recursive: '{submodule-recursive}'
296     wrappers:
297       - lf-infra-wrappers:
298           build-timeout: '{build-timeout}'
299           jenkins-ssh-credential: '{jenkins-ssh-credential}'
300     builders:
301       - lf-infra-pre-build
302       - lf-maven-install:
303           mvn-version: "{mvn-version}"
304       - lf-update-java-alternatives:
305           java-version: "{java-version}"
306       - lf-provide-maven-settings:
307           global-settings-file: "{mvn-global-settings}"
308           settings-file: "{mvn-settings}"
309       - trigger-builds:
310          -  project: "{project-name}-{stream}-{artifact-type}-docker-snapshot"
311             predefined-parameters: |
312               UNIQUE_DOCKER_TAG=$BUILD_TAG
313               PROJECT=$PROJECT
314               BRANCH=$BRANCH
315               GERRIT_REFSPEC=$GERRIT_REFSPEC
316             block: true
317       - trigger-builds:
318          -  project: "{project-name}-{stream}-project-csit"
319             predefined-parameters: |
320               UNIQUE_DOCKER_TAG=$BUILD_TAG
321               PROJECT=$PROJECT
322               BRANCH=$BRANCH
323               GERRIT_REFSPEC=$GERRIT_REFSPEC
324             block: true
325       - trigger-builds:
326          -  project: "{project-name}-{stream}-docker-staging"
327             predefined-parameters: |
328               UNIQUE_DOCKER_TAG=$BUILD_TAG
329               PROJECT=$PROJECT
330               BRANCH=$BRANCH
331               GERRIT_REFSPEC=$GERRIT_REFSPEC
332             block: true
333     triggers:
334       - gerrit-trigger-patch-merged:
335           server: '{server-name}'
336           project: '{project}'
337           branch: '{branch}'
338           files: '**'
339     publishers:
340       - lf-infra-publish
341