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'
28 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
29 execution-mode: 'packaging'
30 gated-projects: 'infra/stack/onap|infra/installer/oom'
35 deploy-scenario: 'onap-sdc-full'
38 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
39 execution-mode: 'packaging'
40 gated-projects: 'infra/stack/onap|infra/installer/oom'
45 deploy-scenario: 'onap-sdc-full'
48 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
49 execution-mode: 'packaging'
50 gated-projects: 'infra/stack/onap|infra/installer/oom'
55 deploy-scenario: 'onap-sdc-full'
60 dependency-jobs: 'onap-verify-tox-{stream}'
61 dependency-job-var: 'TRIGGER_onap_verify_tox_{stream}_BUILD_RESULT'
64 - 'onap-verify-package-{distro}-{stream}'
67 name: 'onap-verify-package-{distro}-{stream}'
69 disabled: '{obj:disabled}'
76 default: '{deploy-scenario}'
77 description: 'Scenario to test change with.'
80 default: '{execution-mode}'
81 description: 'Engine execution mode - packaging'
85 description: 'Distribution to use for configuring target nodes (networking etc.)'
89 description: 'Verbosity setting for the engine - true or false - default is false'
93 description: 'CI loop type'
96 default: 'engine-package-{distro}-fra'
97 description: 'Slave label to schedule this job on.'
99 project: $GERRIT_PROJECT
101 description: 'The project and branch which the change is proposed for'
102 - nordix-gerrit-parameters
106 # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
113 - engine-verify-package
117 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
118 branch: $GERRIT_BRANCH
119 refspec: $GERRIT_REFSPEC
125 server-name: 'Nordix Gerrit'
127 - patchset-created-event:
128 exclude-drafts: 'false'
129 exclude-trivial-rebase: 'false'
130 exclude-no-code-change: 'false'
131 - draft-published-event
132 - comment-added-contains-event:
133 comment-contains-value: 'recheck'
134 - comment-added-contains-event:
135 comment-contains-value: 'reverify'
137 - project-compare-type: 'REG_EXP'
138 project-pattern: '{gated-projects}'
140 - branch-compare-type: 'ANT'
141 branch-pattern: '**/{branch}'
142 disable-strict-forbidden-file-verification: 'true'
143 forbidden-file-paths:
145 pattern: 'docs/**|releasenotes/**'
147 successful: '{obj:successful}'
148 failed: '{obj:failed}'
149 unstable: '{obj:unstable}'
150 notbuilt: '{obj:notbuilt}'
151 custom-url: '* $JOB_NAME $BUILD_URL'
152 readable-message: 'true'
153 dependency-jobs: '{dependency-jobs}'
160 - credentials-binding:
161 - username-password-separated:
162 credential-id: 'nordix-cicd-arm-credentials'
163 username: NORDIX_ARM_USERNAME
164 password: NORDIX_ARM_TOKEN
171 def build = this.getProperty('binding').getVariable('build')
172 def listener = this.getProperty('binding').getVariable('listener')
173 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
174 println "WARN : Aborting build since dependent job did not succeed!"
175 throw new InterruptedException()
179 sudo chown -R $USER:$USER $WORKSPACE || exit 1
183 - 'generate-change-metadata-macro'
185 properties-file: "$WORKSPACE/change.properties"
186 - 'generate-ssh-keypair-macro'
187 - 'wait-pkg-mgr-macro'
189 - 'upload-artifact-macro'