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: 'openstack-verify-package'
23 project: 'openstack-verify-package'
28 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
29 execution-mode: 'packaging'
30 gated-projects: 'infra/stack/openstack|infra/installer/kolla'
37 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
38 execution-mode: 'packaging'
39 gated-projects: 'infra/stack/openstack|infra/installer/kolla'
46 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
47 execution-mode: 'packaging'
48 gated-projects: 'infra/stack/openstack|infra/installer/kolla'
57 dependency-jobs: 'openstack-verify-tox-{stream}'
58 dependency-job-var: 'TRIGGER_openstack_verify_tox_{stream}_BUILD_RESULT'
61 - 'openstack-verify-package-{distro}-{stream}'
64 name: 'openstack-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
99 # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
106 - engine-verify-package
110 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
111 branch: $GERRIT_BRANCH
112 refspec: $GERRIT_REFSPEC
118 server-name: 'Nordix Gerrit'
120 - patchset-created-event:
121 exclude-drafts: 'false'
122 exclude-trivial-rebase: 'false'
123 exclude-no-code-change: 'false'
124 - draft-published-event
125 - comment-added-contains-event:
126 comment-contains-value: 'recheck'
127 - comment-added-contains-event:
128 comment-contains-value: 'reverify'
130 - project-compare-type: 'REG_EXP'
131 project-pattern: '{gated-projects}'
133 - branch-compare-type: 'ANT'
134 branch-pattern: '**/{branch}'
135 disable-strict-forbidden-file-verification: 'true'
136 forbidden-file-paths:
138 pattern: 'docs/**|releasenotes/**'
140 successful: '{obj:successful}'
141 failed: '{obj:failed}'
142 unstable: '{obj:unstable}'
143 notbuilt: '{obj:notbuilt}'
144 custom-url: '* $JOB_NAME $BUILD_URL'
145 readable-message: 'true'
146 dependency-jobs: '{dependency-jobs}'
153 - credentials-binding:
154 - username-password-separated:
155 credential-id: 'nordix-cicd-arm-credentials'
156 username: NORDIX_ARM_USERNAME
157 password: NORDIX_ARM_TOKEN
164 def build = this.getProperty('binding').getVariable('build')
165 def listener = this.getProperty('binding').getVariable('listener')
166 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
167 println "WARN : Aborting build since dependent job did not succeed!"
168 throw new InterruptedException()
172 sudo chown -R $USER:$USER $WORKSPACE || exit 1
176 - 'generate-change-metadata-macro'
178 properties-file: "$WORKSPACE/change.properties"
179 - 'generate-ssh-keypair-macro'
180 - 'wait-pkg-mgr-macro'
182 - 'upload-artifact-macro'