Add initial job to produce kni installer binary
[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-build-installer
19     name: '{project-name}-build-installer'
20
21     ######################
22     # Default parameters #
23     ######################
24
25     build-days-to-keep: 30
26     build-timeout: 60
27     submodule-recursive: true
28
29     #####################
30     # Job Configuration #
31     #####################
32
33     project-type: freestyle
34     node: '{build-node}'
35
36     properties:
37       - lf-infra-properties:
38           build-days-to-keep: '{build-days-to-keep}'
39
40     parameters:
41       - lf-infra-parameters:
42           project: '{project}'
43           branch: '{branch}'
44           stream: '{stream}'
45           lftools-version: '{lftools-version}'
46
47     wrappers:
48       - lf-infra-wrappers:
49           build-timeout: '{build-timeout}'
50           jenkins-ssh-credential: '{jenkins-ssh-credential}'
51
52     gerrit_merge_triggers:
53       - change-merged-event
54       - comment-added-contains-event:
55           comment-contains-value: remerge$
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           choosing-strategy: default
66
67     triggers:
68       - gerrit:
69           server-name: '{gerrit-server-name}'
70           trigger-on:
71             - patchset-created-event:
72                 exclude-drafts: 'false'
73                 exclude-trivial-rebase: 'false'
74                 exclude-no-code-change: 'false'
75             - change-merged-event
76             - comment-added-contains-event:
77                 comment-contains-value: 'recheck'
78             - comment-added-contains-event:
79                 comment-contains-value: 'reverify'
80
81     builders:
82       - lf-infra-pre-build
83       - shell: !include-raw-escape:
84           - ../shell/install_go.sh
85       - shell: !include-raw-escape:
86           - ../shell/build_kni_installer.sh
87
88     publishers:
89       - lf-infra-publish