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
100 use-build-blocker: true
102 - 'engine-verify-package-.*'
103 - 'kubernetes-verify-package-.*'
104 - 'onap-verify-package-.*'
105 - 'openstack-verify-package-.*'
114 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
115 branch: $GERRIT_BRANCH
116 refspec: $GERRIT_REFSPEC
122 server-name: 'Nordix Gerrit'
124 - patchset-created-event:
125 exclude-drafts: 'false'
126 exclude-trivial-rebase: 'false'
127 exclude-no-code-change: 'false'
128 - draft-published-event
129 - comment-added-contains-event:
130 comment-contains-value: 'recheck'
131 - comment-added-contains-event:
132 comment-contains-value: 'reverify'
134 - project-compare-type: 'REG_EXP'
135 project-pattern: '{gated-projects}'
137 - branch-compare-type: 'ANT'
138 branch-pattern: '**/{branch}'
139 disable-strict-forbidden-file-verification: 'true'
140 forbidden-file-paths:
142 pattern: 'docs/**|releasenotes/**'
144 successful: '{obj:successful}'
145 failed: '{obj:failed}'
146 unstable: '{obj:unstable}'
147 notbuilt: '{obj:notbuilt}'
148 custom-url: '* $JOB_NAME $BUILD_URL'
149 readable-message: 'true'
150 dependency-jobs: '{dependency-jobs}'
157 - credentials-binding:
158 - username-password-separated:
159 credential-id: 'nordix-cicd-arm-credentials'
160 username: NORDIX_ARM_USERNAME
161 password: NORDIX_ARM_TOKEN
168 def build = this.getProperty('binding').getVariable('build')
169 def listener = this.getProperty('binding').getVariable('listener')
170 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
171 println "WARN : Aborting build since dependent job did not succeed!"
172 throw new InterruptedException()
176 sudo chown -R $USER:$USER $WORKSPACE || exit 1
180 - 'generate-change-metadata-macro'
182 properties-file: "$WORKSPACE/change.properties"
183 - 'generate-ssh-keypair-macro'
184 - 'wait-pkg-mgr-macro'
186 - 'upload-artifact-macro'