2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2019 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # 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,
13 # WITHOUT 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 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 name: 'kubernetes-verify-package'
23 project: 'kubernetes-verify-package'
25 # NOTE (fdegir): dot is not an allowed character in groovy var names and also for
26 # naming openstack objects so stream is used for that purpose but branch points to
27 # actual branch name on gerrit
31 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
32 execution-mode: 'packaging'
33 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
40 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
41 execution-mode: 'packaging'
42 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
49 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
50 execution-mode: 'packaging'
51 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
60 dependency-jobs: 'kubernetes-verify-tox-{stream}'
61 dependency-job-var: 'TRIGGER_kubernetes_verify_tox_{stream}_BUILD_RESULT'
64 - 'kubernetes-verify-package-{distro}-{stream}'
67 name: 'kubernetes-verify-package-{distro}-{stream}'
69 disabled: '{obj:disabled}'
76 default: '{execution-mode}'
77 description: 'Engine execution mode - packaging'
81 description: 'Distribution to use for configuring target nodes (networking etc.)'
85 description: 'Verbosity setting for the engine - true or false - default is false'
89 description: 'CI loop type'
92 default: 'engine-package-{distro}-fra'
93 description: 'Slave label to schedule this job on.'
95 project: $GERRIT_PROJECT
97 description: 'The project and branch which the change is proposed for'
98 - nordix-gerrit-parameters
102 # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
109 - engine-verify-package
113 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
114 branch: $GERRIT_BRANCH
115 refspec: $GERRIT_REFSPEC
121 server-name: 'Nordix Gerrit'
123 - patchset-created-event:
124 exclude-drafts: 'false'
125 exclude-trivial-rebase: 'false'
126 exclude-no-code-change: 'false'
127 - draft-published-event
128 - comment-added-contains-event:
129 comment-contains-value: 'recheck'
130 - comment-added-contains-event:
131 comment-contains-value: 'reverify'
133 - project-compare-type: 'REG_EXP'
134 project-pattern: '{gated-projects}'
136 - branch-compare-type: 'ANT'
137 branch-pattern: '**/{branch}'
138 disable-strict-forbidden-file-verification: 'true'
139 forbidden-file-paths:
141 pattern: 'docs/**|releasenotes/**'
143 successful: '{obj:successful}'
144 failed: '{obj:failed}'
145 unstable: '{obj:unstable}'
146 notbuilt: '{obj:notbuilt}'
147 custom-url: '* $JOB_NAME $BUILD_URL'
148 readable-message: 'true'
149 dependency-jobs: '{dependency-jobs}'
156 - credentials-binding:
157 - username-password-separated:
158 credential-id: 'nordix-cicd-arm-credentials'
159 username: NORDIX_ARM_USERNAME
160 password: NORDIX_ARM_TOKEN
167 def build = this.getProperty('binding').getVariable('build')
168 def listener = this.getProperty('binding').getVariable('listener')
169 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
170 println "WARN : Aborting build since dependent job did not succeed!"
171 throw new InterruptedException()
175 sudo chown -R $USER:$USER $WORKSPACE || exit 1
179 - 'generate-change-metadata-macro'
181 properties-file: "$WORKSPACE/change.properties"
182 - 'generate-ssh-keypair-macro'
183 - 'wait-pkg-mgr-macro'
185 - 'upload-artifact-macro'