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: 'onap-verify-package'
23 project: 'onap-verify-package'
29 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
30 execution-mode: 'packaging'
31 container-tool: 'docker'
32 gated-projects: 'infra/stack/onap|infra/installer/oom'
37 deploy-scenario: 'onap-full-nofeature'
40 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
41 execution-mode: 'packaging'
42 container-tool: 'docker'
43 gated-projects: 'infra/stack/onap|infra/installer/oom'
48 deploy-scenario: 'onap-full-nofeature'
51 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
52 execution-mode: 'packaging'
53 container-tool: 'docker'
54 gated-projects: 'infra/stack/onap|infra/installer/oom'
59 deploy-scenario: 'onap-full-nofeature'
62 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
63 execution-mode: 'packaging'
64 container-tool: 'docker'
65 gated-projects: 'infra/stack/onap|infra/installer/oom'
70 deploy-scenario: 'onap-full-nofeature'
75 dependency-jobs: 'onap-verify-tox-{stream}'
76 dependency-job-var: 'TRIGGER_onap_verify_tox_{stream}_BUILD_RESULT'
79 - 'onap-verify-package-{distro}-{stream}'
82 name: 'onap-verify-package-{distro}-{stream}'
84 disabled: '{obj:disabled}'
91 default: '{deploy-scenario}'
92 description: 'Scenario to test change with.'
95 default: '{execution-mode}'
96 description: 'Engine execution mode - packaging'
99 default: '{container-tool}'
100 description: 'Command to use when pulling images. Options docker or podman'
104 description: 'Distribution to use for configuring target nodes (networking etc.)'
108 description: 'Verbosity setting for the engine - true or false - default is false'
112 description: 'CI loop type'
115 default: 'engine-package-{distro}-fra'
116 description: 'Slave label to schedule this job on.'
117 - project-parameters:
118 project: $GERRIT_PROJECT
120 description: 'The project and branch which the change is proposed for'
121 - nordix-gerrit-parameters
125 # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
132 - engine-verify-package
136 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
137 branch: $GERRIT_BRANCH
138 refspec: $GERRIT_REFSPEC
144 server-name: 'Nordix Gerrit'
146 - patchset-created-event:
147 exclude-drafts: 'false'
148 exclude-trivial-rebase: 'false'
149 exclude-no-code-change: 'false'
150 - draft-published-event
151 - comment-added-contains-event:
152 comment-contains-value: 'recheck'
153 - comment-added-contains-event:
154 comment-contains-value: 'reverify'
156 - project-compare-type: 'REG_EXP'
157 project-pattern: '{gated-projects}'
159 - branch-compare-type: 'ANT'
160 branch-pattern: '**/{branch}'
161 disable-strict-forbidden-file-verification: 'true'
162 forbidden-file-paths:
164 pattern: 'docs/**|releasenotes/**'
166 successful: '{obj:successful}'
167 failed: '{obj:failed}'
168 unstable: '{obj:unstable}'
169 notbuilt: '{obj:notbuilt}'
170 custom-url: '* $JOB_NAME $BUILD_URL'
171 readable-message: 'true'
172 dependency-jobs: '{dependency-jobs}'
179 - credentials-binding:
180 - username-password-separated:
181 credential-id: 'nordix-cicd-arm-credentials'
182 username: NORDIX_ARM_USERNAME
183 password: NORDIX_ARM_TOKEN
190 def build = this.getProperty('binding').getVariable('build')
191 def listener = this.getProperty('binding').getVariable('listener')
192 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
193 println "WARN : Aborting build since dependent job did not succeed!"
194 throw new InterruptedException()
198 sudo chown -R $USER:$USER $WORKSPACE || exit 1
202 - 'generate-change-metadata-macro'
204 properties-file: "$WORKSPACE/change.properties"
205 - 'generate-ssh-keypair-macro'
206 - 'wait-pkg-mgr-macro'
208 - 'upload-artifact-macro'