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'
28 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
29 execution-mode: 'packaging'
30 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
37 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
38 execution-mode: 'packaging'
39 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
46 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
47 execution-mode: 'packaging'
48 gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
57 dependency-jobs: 'kubernetes-verify-tox-{stream}'
58 dependency-job-var: 'TRIGGER_kubernetes_verify_tox_{stream}_BUILD_RESULT'
61 - 'kubernetes-verify-package-{distro}-{stream}'
64 name: 'kubernetes-verify-package-{distro}-{stream}'
66 disabled: '{obj:disabled}'
73 default: '{execution-mode}'
74 description: 'Engine execution mode - packaging'
78 description: 'Distribution to use for configuring target nodes (networking etc.)'
82 description: 'Verbosity setting for the engine - true or false - default is false'
86 description: 'CI loop type'
89 default: 'engine-package-{distro}-fra'
90 description: 'Slave label to schedule this job on.'
92 project: $GERRIT_PROJECT
94 description: 'The project and branch which the change is proposed for'
95 - nordix-gerrit-parameters
100 use-build-blocker: true
102 - 'engine-verify-package-.*'
103 - 'kubernetes-verify-package-.*'
112 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
113 branch: $GERRIT_BRANCH
114 refspec: $GERRIT_REFSPEC
120 server-name: 'Nordix Gerrit'
122 - patchset-created-event:
123 exclude-drafts: 'false'
124 exclude-trivial-rebase: 'false'
125 exclude-no-code-change: 'false'
126 - draft-published-event
127 - comment-added-contains-event:
128 comment-contains-value: 'recheck'
129 - comment-added-contains-event:
130 comment-contains-value: 'reverify'
132 - project-compare-type: 'REG_EXP'
133 project-pattern: '{gated-projects}'
135 - branch-compare-type: 'ANT'
136 branch-pattern: '**/{branch}'
137 disable-strict-forbidden-file-verification: 'true'
138 forbidden-file-paths:
140 pattern: 'docs/**|releasenotes/**'
142 successful: '{obj:successful}'
143 failed: '{obj:failed}'
144 unstable: '{obj:unstable}'
145 notbuilt: '{obj:notbuilt}'
146 custom-url: '* $JOB_NAME $BUILD_URL'
147 readable-message: 'true'
148 dependency-jobs: '{dependency-jobs}'
155 - credentials-binding:
156 - username-password-separated:
157 credential-id: 'nordix-cicd-arm-credentials'
158 username: NORDIX_ARM_USERNAME
159 password: NORDIX_ARM_TOKEN
166 def build = this.getProperty('binding').getVariable('build')
167 def listener = this.getProperty('binding').getVariable('listener')
168 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
169 println "WARN : Aborting build since dependent job did not succeed!"
170 throw new InterruptedException()
174 sudo chown -R $USER:$USER $WORKSPACE || exit 1
178 - 'generate-change-metadata-macro'
180 properties-file: "$WORKSPACE/change.properties"
181 - 'generate-ssh-keypair-macro'
182 - 'wait-pkg-mgr-macro'
184 - 'upload-artifact-macro'