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