[validation] Disable jobs for tag
[ci-management.git] / jjb / akraino-templates / akraino-jjb-kni.yaml
1 ---
2 #
3 # Copyright (c) 2019 Red Hat. All rights reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License.
7 #
8 # You may obtain a copy of the License at
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 - job-template:
18     id: kni-installer-verify-installer
19     name: '{project-name}-verify-installer'
20
21     ######################
22     # Default parameters #
23     ######################
24
25     build-node: centos7-builder-2c-1g
26     build-days-to-keep: 30
27     build-timeout: 60
28     submodule-recursive: true
29
30     #####################
31     # Job Configuration #
32     #####################
33
34     project-type: freestyle
35     node: '{build-node}'
36
37     properties:
38       - lf-infra-properties:
39           build-days-to-keep: '{build-days-to-keep}'
40
41     parameters:
42       - lf-infra-parameters:
43           project: '{project}'
44           branch: '{branch}'
45           stream: '{stream}'
46           lftools-version: '{lftools-version}'
47
48     wrappers:
49       - lf-infra-wrappers:
50           build-timeout: '{build-timeout}'
51           jenkins-ssh-credential: '{jenkins-ssh-credential}'
52
53     gerrit_trigger_file_paths:
54       - compare-type: ANT
55         pattern: '**'
56
57     scm:
58       - lf-infra-gerrit-scm:
59           jenkins-ssh-credential: '{jenkins-ssh-credential}'
60           git-url: '{git-url}/{project}.git'
61           refspec: '$GERRIT_REFSPEC'
62           branch: '$GERRIT_BRANCH'
63           submodule-recursive: '{submodule-recursive}'
64           submodule-timeout: '{submodule-timeout}'
65           submodule-disable: false
66           choosing-strategy: default
67
68     gerrit_verify_triggers:
69       - patchset-created-event:
70           exclude-drafts: true
71           exclude-trivial-rebase: false
72           exclude-no-code-change: false
73       - draft-published-event
74       - comment-added-contains-event:
75           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
76
77     triggers:
78       - gerrit:
79           server-name: '{gerrit-server-name}'
80           trigger-on: '{obj:gerrit_verify_triggers}'
81           projects:
82             - project-compare-type: ANT
83               project-pattern: '{project}'
84               branches:
85                 - branch-compare-type: ANT
86                   branch-pattern: '**/{branch}'
87               file-paths: '{obj:gerrit_trigger_file_paths}'
88
89     builders:
90       - lf-infra-pre-build
91       - shell: !include-raw-escape:
92           - ../shell/install_go.sh
93       - shell: !include-raw-escape:
94           - ../shell/build_kni_installer.sh
95
96     publishers:
97       - lf-infra-publish
98
99 - job-template:
100     id: kni-installer-verify-binary
101     name: '{project-name}-verify-binary'
102
103     ######################
104     # Default parameters #
105     ######################
106
107     build-days-to-keep: 30
108     build-timeout: 60
109     build-node: centos7-builder-8c-8g
110     submodule-recursive: true
111
112     #####################
113     # Job Configuration #
114     #####################
115
116     project-type: freestyle
117     node: '{build-node}'
118
119     properties:
120       - lf-infra-properties:
121           build-days-to-keep: '{build-days-to-keep}'
122
123     parameters:
124       - lf-infra-parameters:
125           project: '{project}'
126           branch: '{branch}'
127           stream: '{stream}'
128           lftools-version: '{lftools-version}'
129
130     wrappers:
131       - lf-infra-wrappers:
132           build-timeout: '{build-timeout}'
133           jenkins-ssh-credential: '{jenkins-ssh-credential}'
134
135     gerrit_trigger_file_paths:
136       - compare-type: ANT
137         pattern: 'Makefile'
138       - compare-type: ANT
139         pattern: 'cmd/binary.go'
140
141     gerrit_verify_triggers:
142       - patchset-created-event:
143           execlude-drafts: true
144           exclude-trivial-rebase: false
145           exclude-no-code-change: false
146       - draft-published-event
147       - comment-added-contains-event:
148           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
149
150     scm:
151       - lf-infra-gerrit-scm:
152           jenkins-ssh-credential: '{jenkins-ssh-credential}'
153           git-url: '{git-url}/{project}.git'
154           refspec: '$GERRIT_REFSPEC'
155           branch: '$GERRIT_BRANCH'
156           submodule-recursive: '{submodule-recursive}'
157           submodule-timeout: '{submodule-timeout}'
158           submodule-disable: false
159           choosing-strategy: default
160
161     triggers:
162       - gerrit:
163           server-name: '{gerrit-server-name}'
164           trigger-on: '{obj:gerrit_verify_triggers}'
165           projects:
166             - project-compare-type: ANT
167               project-pattern: '{project}'
168               branches:
169                 - branch-compare-type: ANT
170                   branch-pattern: '**/{branch}'
171               file-paths: '{obj:gerrit_trigger_file_paths}'
172
173     builders:
174       - lf-infra-pre-build
175       - shell: !include-raw-escape:
176           - ../shell/install_go.sh
177       - shell: !include-raw-escape:
178           - ../shell/build_kni_binary.sh
179
180     publishers:
181       - lf-infra-publish
182
183 - job-template:
184     id: kni-verify-deploy-aws
185     name: 'kni-{project-name}-verify-deploy-aws'
186
187     ######################
188     # Default parameters #
189     ######################
190
191     build-days-to-keep: 30
192     build-timeout: 60
193     build-node: kni-libvirt
194     submodule-recursive: true
195
196     #####################
197     # Job Configuration #
198     #####################
199
200     project-type: freestyle
201     node: '{build-node}'
202
203     properties:
204       - lf-infra-properties:
205           build-days-to-keep: '{build-days-to-keep}'
206
207     archive-artifacts: >
208       **/*.log
209
210     parameters:
211       - lf-infra-parameters:
212           project: '{project}'
213           branch: '{branch}'
214           stream: '{stream}'
215           lftools-version: '{lftools-version}'
216       - string:
217           name: ARCHIVE_ARTIFACTS
218           default: '{archive-artifacts}'
219           description: Artifacts to archive to the logs server.
220
221     wrappers:
222       - lf-infra-wrappers:
223           build-timeout: '{build-timeout}'
224           jenkins-ssh-credential: '{jenkins-ssh-credential}'
225       - credentials-binding:
226           - ssh-user-private-key:
227               credential-id: kni-secrets
228               key-file-variable: KNI_KEY_PATH
229
230     gerrit_trigger_file_paths:
231       - compare-type: ANT
232         pattern: 'profiles/production.aws/**'
233       - compare-type: ANT
234         pattern: 'sites/testing.aws.edge-sites.net/**'
235       - compare-type: ANT
236         pattern: 'base/**'
237
238     gerrit_verify_triggers:
239       - patchset-created-event:
240           exclude-drafts: true
241           exclude-trivial-rebase: false
242           exclude-no-code-change: false
243       - draft-published-event
244       - comment-added-contains-event:
245           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
246
247     scm:
248       - akraino-lf-infra-gerrit-scm:
249           jenkins-ssh-credential: '{jenkins-ssh-credential}'
250           git-url: '{git-url}/{project}.git'
251           refspec: '$GERRIT_REFSPEC'
252           branch: '$GERRIT_BRANCH'
253           submodule-recursive: '{submodule-recursive}'
254           submodule-timeout: '{submodule-timeout}'
255           submodule-disable: false
256           choosing-strategy: default
257           basedir: '{project-name}'
258       - akraino-lf-infra-gerrit-scm:
259           jenkins-ssh-credential: '{jenkins-ssh-credential}'
260           git-url: '{git-url}/kni/installer.git'
261           refspec: 'refs/heads/master'
262           branch: 'master'
263           submodule-recursive: '{submodule-recursive}'
264           submodule-timeout: '{submodule-timeout}'
265           submodule-disable: false
266           choosing-strategy: default
267           basedir: 'installer'
268     triggers:
269       - gerrit:
270           server-name: '{gerrit-server-name}'
271           trigger-on: '{obj:gerrit_verify_triggers}'
272           projects:
273             - project-compare-type: ANT
274               project-pattern: '{project}'
275               branches:
276                 - branch-compare-type: ANT
277                   branch-pattern: '**/{branch}'
278               file-paths: '{obj:gerrit_trigger_file_paths}'
279
280     builders:
281       - lf-infra-pre-build
282       - config-file-provider:
283           files:
284             - file-id: kni-coreos-pull-secret
285               target: akraino-secrets/coreos-pull-secret
286       - shell: !include-raw-escape:
287           - ../shell/install_go.sh
288       - shell: ./installer/ci/kni_deploy_aws.sh
289
290     publishers:
291       - lf-infra-publish
292
293 - job-template:
294     id: kni-verify-deploy-libvirt
295     name: 'kni-{project-name}-verify-deploy-libvirt'
296
297     ######################
298     # Default parameters #
299     ######################
300
301     build-days-to-keep: 30
302     build-timeout: 60
303     build-node: kni-libvirt
304     submodule-recursive: true
305
306     #####################
307     # Job Configuration #
308     #####################
309
310     project-type: freestyle
311     node: '{build-node}'
312
313     properties:
314       - lf-infra-properties:
315           build-days-to-keep: '{build-days-to-keep}'
316
317     parameters:
318       - lf-infra-parameters:
319           project: '{project}'
320           branch: '{branch}'
321           stream: '{stream}'
322           lftools-version: '{lftools-version}'
323       - string:
324           name: ARCHIVE_ARTIFACTS
325           default: '{archive-artifacts}'
326           description: Artifacts to archive to the logs server.
327
328     archive-artifacts: >
329       **/*.log
330
331     wrappers:
332       - lf-infra-wrappers:
333           build-timeout: '{build-timeout}'
334           jenkins-ssh-credential: '{jenkins-ssh-credential}'
335       - credentials-binding:
336           - ssh-user-private-key:
337               credential-id: kni-secrets
338               key-file-variable: KNI_KEY_PATH
339
340     gerrit_trigger_file_paths:
341       - compare-type: ANT
342         pattern: 'profiles/testing.libvirt/**'
343       - compare-type: ANT
344         pattern: 'sites/testing.virt.edge-sites.net/**'
345       - compare-type: ANT
346         pattern: 'base/**'
347
348     gerrit_verify_triggers:
349       - patchset-created-event:
350           exclude-drafts: true
351           exclude-trivial-rebase: false
352           exclude-no-code-change: false
353       - draft-published-event
354       - comment-added-contains-event:
355           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
356
357     triggers:
358       - gerrit:
359           server-name: '{gerrit-server-name}'
360           trigger-on: '{obj:gerrit_verify_triggers}'
361           projects:
362             - project-compare-type: ANT
363               project-pattern: '{project}'
364               branches:
365                 - branch-compare-type: ANT
366                   branch-pattern: '**/{branch}'
367               file-paths: '{obj:gerrit_trigger_file_paths}'
368
369     scm:
370       - akraino-lf-infra-gerrit-scm:
371           jenkins-ssh-credential: '{jenkins-ssh-credential}'
372           git-url: '{git-url}/{project}.git'
373           refspec: '$GERRIT_REFSPEC'
374           branch: '$GERRIT_BRANCH'
375           submodule-recursive: '{submodule-recursive}'
376           submodule-timeout: '{submodule-timeout}'
377           submodule-disable: false
378           choosing-strategy: default
379           basedir: '{project-name}'
380       - akraino-lf-infra-gerrit-scm:
381           jenkins-ssh-credential: '{jenkins-ssh-credential}'
382           git-url: '{git-url}/kni/installer.git'
383           refspec: 'refs/heads/master'
384           branch: 'master'
385           submodule-recursive: '{submodule-recursive}'
386           submodule-timeout: '{submodule-timeout}'
387           submodule-disable: false
388           choosing-strategy: default
389           basedir: 'installer'
390     builders:
391       - lf-infra-pre-build
392       - config-file-provider:
393           files:
394             - file-id: kni-coreos-pull-secret
395               target: akraino-secrets/coreos-pull-secret
396             - file-id: kni-ssh-pub-key
397               target: akraino-secrets/ssh-pub-key
398       - shell: !include-raw-escape:
399           - ../shell/install_go.sh
400       - shell: ./installer/ci/kni_deploy_libvirt.sh
401
402     publishers:
403       - lf-infra-publish
404
405 - job-template:
406     id: kni-installer-publish-openshift-install-libvirt-binary
407     name: '{project-name}-publish-openshift-install-libvirt-binary'
408
409     ######################
410     # Default parameters #
411     ######################
412
413     build-days-to-keep: 200
414     build-timeout: 60
415     build-node: centos7-builder-8c-8g
416     submodule-recursive: true
417
418     #####################
419     # Job Configuration #
420     #####################
421
422     project-type: freestyle
423     node: '{build-node}'
424
425     properties:
426       - lf-infra-properties:
427           build-days-to-keep: '{build-days-to-keep}'
428
429     parameters:
430       - lf-infra-parameters:
431           project: '{project}'
432           branch: '{branch}'
433           stream: '{stream}'
434           lftools-version: '{lftools-version}'
435
436     wrappers:
437       - lf-infra-wrappers:
438           build-timeout: '{build-timeout}'
439           jenkins-ssh-credential: '{jenkins-ssh-credential}'
440
441     gerrit_build_triggers:
442       - comment-added-contains-event:
443           comment-contains-value: '^build-binary'
444
445     scm:
446       - lf-infra-gerrit-scm:
447           jenkins-ssh-credential: '{jenkins-ssh-credential}'
448           git-url: '{git-url}/{project}.git'
449           refspec: '$GERRIT_REFSPEC'
450           branch: '$GERRIT_BRANCH'
451           submodule-recursive: '{submodule-recursive}'
452           submodule-timeout: '{submodule-timeout}'
453           submodule-disable: false
454           choosing-strategy: default
455
456     triggers:
457       - gerrit:
458           server-name: '{gerrit-server-name}'
459           trigger-on: '{obj:gerrit_build_triggers}'
460           projects:
461             - project-compare-type: ANT
462               project-pattern: '{project}'
463               branches:
464                 - branch-compare-type: ANT
465                   branch-pattern: '**/{branch}'
466
467     builders:
468       - lf-infra-pre-build
469       - shell: !include-raw-escape:
470           - ../shell/install_go.sh
471       - shell: !include-raw-escape:
472           - ../shell/build_openshift_install_libvirt_binary.sh
473
474     publishers:
475       - lf-infra-publish