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: 'ironic-verify-package'
23 project: 'ironic-verify-package'
28 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
29 execution-mode: 'packaging'
30 gated-projects: 'infra/stack/ironic|infra/provisioner/bifrost'
35 deploy-scenario: 'k8-multus-plugins'
41 dependency-jobs: 'ironic-verify-tox-{stream}'
42 dependency-job-var: 'TRIGGER_ironic_verify_tox_{stream}_BUILD_RESULT'
45 - 'ironic-verify-package-{distro}-{stream}'
48 name: 'ironic-verify-package-{distro}-{stream}'
50 disabled: '{obj:disabled}'
52 node: 'engine-package-ubuntu1804-fra'
59 default: '{deploy-scenario}'
60 description: 'Scenario to test change with.'
63 default: '{execution-mode}'
64 description: 'Engine execution mode - packaging'
68 description: 'Distribution to use for configuring target nodes (networking etc.)'
72 description: 'Verbosity setting for the engine - true or false - default is false'
76 description: 'CI loop type'
78 project: $GERRIT_PROJECT
80 description: 'The project and branch which the change is proposed for'
81 - nordix-gerrit-parameters
85 # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
92 - engine-verify-package
96 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
97 branch: $GERRIT_BRANCH
98 refspec: $GERRIT_REFSPEC
104 server-name: 'Nordix Gerrit'
106 - patchset-created-event:
107 exclude-drafts: 'false'
108 exclude-trivial-rebase: 'false'
109 exclude-no-code-change: 'false'
110 - draft-published-event
111 - comment-added-contains-event:
112 comment-contains-value: 'recheck'
113 - comment-added-contains-event:
114 comment-contains-value: 'reverify'
116 - project-compare-type: 'REG_EXP'
117 project-pattern: '{gated-projects}'
119 - branch-compare-type: 'ANT'
120 branch-pattern: '**/{branch}'
121 disable-strict-forbidden-file-verification: 'true'
122 forbidden-file-paths:
124 pattern: 'docs/**|releasenotes/**'
126 successful: '{obj:successful}'
127 failed: '{obj:failed}'
128 unstable: '{obj:unstable}'
129 notbuilt: '{obj:notbuilt}'
130 custom-url: '* $JOB_NAME $BUILD_URL'
131 readable-message: 'true'
132 dependency-jobs: '{dependency-jobs}'
139 - credentials-binding:
140 - username-password-separated:
141 credential-id: 'nordix-cicd-arm-credentials'
142 username: NORDIX_ARM_USERNAME
143 password: NORDIX_ARM_TOKEN
150 def build = this.getProperty('binding').getVariable('build')
151 def listener = this.getProperty('binding').getVariable('listener')
152 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
153 println "WARN : Aborting build since dependent job did not succeed!"
154 throw new InterruptedException()
158 sudo chown -R $USER:$USER $WORKSPACE || exit 1
162 - 'generate-change-metadata-macro'
164 properties-file: "$WORKSPACE/change.properties"
165 - 'generate-ssh-keypair-macro'
166 - 'wait-pkg-mgr-macro'
168 - 'upload-artifact-macro'