3 # Copyright (c) 2019 Red Hat. All rights reserved.
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 id: kni-installer-verify-installer
19 name: '{project-name}-verify-installer'
21 ######################
22 # Default parameters #
23 ######################
25 build-node: centos7-builder-2c-1g
26 build-days-to-keep: 30
28 submodule-recursive: true
34 project-type: freestyle
38 - lf-infra-properties:
39 build-days-to-keep: '{build-days-to-keep}'
42 - lf-infra-parameters:
46 lftools-version: '{lftools-version}'
50 build-timeout: '{build-timeout}'
51 jenkins-ssh-credential: '{jenkins-ssh-credential}'
53 gerrit_trigger_file_paths:
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
68 gerrit_verify_triggers:
69 - patchset-created-event:
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)$'
79 server-name: '{gerrit-server-name}'
80 trigger-on: '{obj:gerrit_verify_triggers}'
82 - project-compare-type: ANT
83 project-pattern: '{project}'
85 - branch-compare-type: ANT
86 branch-pattern: '**/{branch}'
87 file-paths: '{obj:gerrit_trigger_file_paths}'
91 - shell: !include-raw-escape:
92 - ../shell/install_go.sh
93 - shell: !include-raw-escape:
94 - ../shell/build_kni_installer.sh
100 id: kni-installer-verify-binary
101 name: '{project-name}-verify-binary'
103 ######################
104 # Default parameters #
105 ######################
107 build-days-to-keep: 30
109 build-node: centos7-builder-8c-8g
110 submodule-recursive: true
112 #####################
113 # Job Configuration #
114 #####################
116 project-type: freestyle
120 - lf-infra-properties:
121 build-days-to-keep: '{build-days-to-keep}'
124 - lf-infra-parameters:
128 lftools-version: '{lftools-version}'
132 build-timeout: '{build-timeout}'
133 jenkins-ssh-credential: '{jenkins-ssh-credential}'
135 gerrit_trigger_file_paths:
139 pattern: 'cmd/binary.go'
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)$'
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
163 server-name: '{gerrit-server-name}'
164 trigger-on: '{obj:gerrit_verify_triggers}'
166 - project-compare-type: ANT
167 project-pattern: '{project}'
169 - branch-compare-type: ANT
170 branch-pattern: '**/{branch}'
171 file-paths: '{obj:gerrit_trigger_file_paths}'
175 - shell: !include-raw-escape:
176 - ../shell/install_go.sh
177 - shell: !include-raw-escape:
178 - ../shell/build_kni_binary.sh
184 id: kni-verify-deploy-aws
185 name: 'kni-{project-name}-verify-deploy-aws'
187 ######################
188 # Default parameters #
189 ######################
191 build-days-to-keep: 30
193 build-node: kni-libvirt
194 submodule-recursive: true
196 #####################
197 # Job Configuration #
198 #####################
200 project-type: freestyle
204 - lf-infra-properties:
205 build-days-to-keep: '{build-days-to-keep}'
211 - lf-infra-parameters:
215 lftools-version: '{lftools-version}'
217 name: ARCHIVE_ARTIFACTS
218 default: '{archive-artifacts}'
219 description: Artifacts to archive to the logs server.
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
230 gerrit_trigger_file_paths:
232 pattern: 'profiles/production.aws/**'
234 pattern: 'sites/testing.aws.edge-sites.net/**'
238 gerrit_verify_triggers:
239 - patchset-created-event:
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)$'
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'
263 submodule-recursive: '{submodule-recursive}'
264 submodule-timeout: '{submodule-timeout}'
265 submodule-disable: false
266 choosing-strategy: default
270 server-name: '{gerrit-server-name}'
271 trigger-on: '{obj:gerrit_verify_triggers}'
273 - project-compare-type: ANT
274 project-pattern: '{project}'
276 - branch-compare-type: ANT
277 branch-pattern: '**/{branch}'
278 file-paths: '{obj:gerrit_trigger_file_paths}'
282 - config-file-provider:
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
294 id: kni-verify-deploy-libvirt
295 name: 'kni-{project-name}-verify-deploy-libvirt'
297 ######################
298 # Default parameters #
299 ######################
301 build-days-to-keep: 30
303 build-node: kni-libvirt
304 submodule-recursive: true
306 #####################
307 # Job Configuration #
308 #####################
310 project-type: freestyle
314 - lf-infra-properties:
315 build-days-to-keep: '{build-days-to-keep}'
318 - lf-infra-parameters:
322 lftools-version: '{lftools-version}'
324 name: ARCHIVE_ARTIFACTS
325 default: '{archive-artifacts}'
326 description: Artifacts to archive to the logs server.
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
340 gerrit_trigger_file_paths:
342 pattern: 'profiles/testing.libvirt/**'
344 pattern: 'sites/testing.virt.edge-sites.net/**'
348 gerrit_verify_triggers:
349 - patchset-created-event:
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)$'
359 server-name: '{gerrit-server-name}'
360 trigger-on: '{obj:gerrit_verify_triggers}'
362 - project-compare-type: ANT
363 project-pattern: '{project}'
365 - branch-compare-type: ANT
366 branch-pattern: '**/{branch}'
367 file-paths: '{obj:gerrit_trigger_file_paths}'
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'
385 submodule-recursive: '{submodule-recursive}'
386 submodule-timeout: '{submodule-timeout}'
387 submodule-disable: false
388 choosing-strategy: default
392 - config-file-provider:
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
406 id: kni-installer-publish-openshift-install-libvirt-binary
407 name: '{project-name}-publish-openshift-install-libvirt-binary'
409 ######################
410 # Default parameters #
411 ######################
413 build-days-to-keep: 200
415 build-node: centos7-builder-8c-8g
416 submodule-recursive: true
418 #####################
419 # Job Configuration #
420 #####################
422 project-type: freestyle
426 - lf-infra-properties:
427 build-days-to-keep: '{build-days-to-keep}'
430 - lf-infra-parameters:
434 lftools-version: '{lftools-version}'
438 build-timeout: '{build-timeout}'
439 jenkins-ssh-credential: '{jenkins-ssh-credential}'
441 gerrit_build_triggers:
442 - comment-added-contains-event:
443 comment-contains-value: '^build-binary'
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
458 server-name: '{gerrit-server-name}'
459 trigger-on: '{obj:gerrit_build_triggers}'
461 - project-compare-type: ANT
462 project-pattern: '{project}'
464 - branch-compare-type: ANT
465 branch-pattern: '**/{branch}'
469 - shell: !include-raw-escape:
470 - ../shell/install_go.sh
471 - shell: !include-raw-escape:
472 - ../shell/build_openshift_install_libvirt_binary.sh