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.
17 - kni_common: &kni_common
20 ######################
21 # Default parameters #
22 ######################
24 build-node: "{build-node}"
25 build-days-to-keep: 30
27 submodule-recursive: true
28 gerrit_trigger_file_paths: "{obj:gerrit_trigger_file_paths}"
34 project-type: freestyle
37 - lf-infra-properties:
38 build-days-to-keep: '{build-days-to-keep}'
41 - lf-infra-parameters:
45 lftools-version: '{lftools-version}'
49 build-timeout: '{build-timeout}'
50 jenkins-ssh-credential: '{jenkins-ssh-credential}'
53 - lf-infra-gerrit-scm:
54 jenkins-ssh-credential: '{jenkins-ssh-credential}'
55 git-url: '{git-url}/{project}.git'
56 refspec: '$GERRIT_REFSPEC'
57 branch: '$GERRIT_BRANCH'
58 submodule-recursive: '{submodule-recursive}'
59 submodule-timeout: '{submodule-timeout}'
60 submodule-disable: false
61 choosing-strategy: default
63 gerrit_verify_triggers:
64 - patchset-created-event:
66 exclude-trivial-rebase: false
67 exclude-no-code-change: false
68 - draft-published-event
69 - comment-added-contains-event:
70 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
74 server-name: '{gerrit-server-name}'
75 trigger-on: '{obj:gerrit_verify_triggers}'
77 - project-compare-type: ANT
78 project-pattern: '{project}'
80 - branch-compare-type: ANT
81 branch-pattern: '**/{branch}'
82 file-paths: '{obj:gerrit_trigger_file_paths}'
86 - kni_common_deploy: &kni_common_deploy
87 name: kni-common-deploy
93 - lf-infra-parameters:
97 lftools-version: '{lftools-version}'
99 name: ARCHIVE_ARTIFACTS
100 default: '{archive-artifacts}'
101 description: Artifacts to archive to the logs server.
105 build-timeout: '{build-timeout}'
106 jenkins-ssh-credential: '{jenkins-ssh-credential}'
107 - credentials-binding:
108 - ssh-user-private-key:
109 credential-id: kni-secrets
110 key-file-variable: KNI_KEY_PATH
112 - akraino-lf-infra-gerrit-scm:
113 jenkins-ssh-credential: '{jenkins-ssh-credential}'
114 git-url: '{git-url}/{project}.git'
115 refspec: '$GERRIT_REFSPEC'
116 branch: '$GERRIT_BRANCH'
117 submodule-recursive: '{submodule-recursive}'
118 submodule-timeout: '{submodule-timeout}'
119 submodule-disable: false
120 choosing-strategy: default
121 basedir: '{project-name}'
122 - akraino-lf-infra-gerrit-scm:
123 jenkins-ssh-credential: '{jenkins-ssh-credential}'
124 git-url: '{git-url}/kni/installer.git'
125 refspec: 'refs/heads/master'
127 submodule-recursive: '{submodule-recursive}'
128 submodule-timeout: '{submodule-timeout}'
129 submodule-disable: false
130 choosing-strategy: default
134 id: kni-installer-verify-installer
135 name: '{project-name}-verify-installer'
136 gerrit_trigger_file_paths:
140 build-node: centos7-builder-2c-1g
144 - shell: !include-raw-escape:
145 - ../shell/install_go.sh
146 - shell: !include-raw-escape:
147 - ../shell/build_kni_installer.sh
150 id: kni-verify-deploy-aws
151 name: 'kni-{project-name}-verify-deploy-aws'
153 <<: *kni_common_deploy
155 gerrit_trigger_file_paths:
157 pattern: 'profiles/production.aws/**'
159 pattern: 'sites/testing.aws.edge-sites.net/**'
165 - config-file-provider:
167 - file-id: kni-coreos-pull-secret
168 target: akraino-secrets/coreos-pull-secret
169 - shell: !include-raw-escape:
170 - ../shell/install_go.sh
171 - shell: ./installer/ci/kni_deploy_aws.sh
174 id: kni-verify-deploy-gcp
175 name: 'kni-{project-name}-verify-deploy-gcp'
177 <<: *kni_common_deploy
179 gerrit_trigger_file_paths:
181 pattern: 'profiles/production.gcp/**'
183 pattern: 'sites/testing.gcp.edge-sites.net/**'
189 - config-file-provider:
191 - file-id: kni-coreos-pull-secret
192 target: akraino-secrets/coreos-pull-secret
193 - shell: !include-raw-escape:
194 - ../shell/install_go.sh
195 - shell: ./installer/ci/kni_deploy_gcp.sh
198 id: kni-verify-deploy-baremetal
199 name: 'kni-{project-name}-verify-deploy-baremetal'
200 <<: *kni_common_deploy
204 gerrit_trigger_file_paths:
206 pattern: 'profiles/production.baremetal/**'
208 pattern: 'sites/testing.baremetal.edge-sites.net/**'
213 - akraino-lf-infra-gerrit-scm:
214 jenkins-ssh-credential: '{jenkins-ssh-credential}'
215 git-url: 'https://gerrit.akraino.org/r/kni/blueprint-pae'
216 refspec: '$GERRIT_REFSPEC'
217 branch: '$GERRIT_BRANCH'
218 submodule-recursive: '{submodule-recursive}'
219 submodule-timeout: '{submodule-timeout}'
220 submodule-disable: false
221 choosing-strategy: default
222 basedir: 'kni-blueprint-pae'
223 - akraino-lf-infra-gerrit-scm:
224 jenkins-ssh-credential: '{jenkins-ssh-credential}'
225 git-url: '{git-url}/kni/installer.git'
226 refspec: 'refs/heads/master'
228 submodule-recursive: '{submodule-recursive}'
229 submodule-timeout: '{submodule-timeout}'
230 submodule-disable: false
231 choosing-strategy: default
236 - config-file-provider:
238 - file-id: kni-coreos-pull-secret
239 target: akraino-secrets/coreos-pull-secret
240 - file-id: kni-ssh-pub-key
241 target: akraino-secrets/ssh-pub-key
242 - shell: sudo -E ./installer/ci/kni_deploy_baremetal.sh