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: 'engine-verify-package'
23 project: 'engine-verify-package'
28 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-cicd'
29 execution-mode: 'packaging'
30 gated-projects: 'infra/engine|infra/provisioner/bifrost|infra/provisioner/heat|infra/installer/kolla|infra/installer/kubespray'
39 dependency-jobs: 'engine-verify-tox-{stream}'
40 dependency-job-var: 'TRIGGER_engine_verify_tox_{stream}_BUILD_RESULT'
43 - 'engine-verify-package-{distro}-{stream}'
46 name: 'engine-verify-package-{distro}-{stream}'
48 disabled: '{obj:disabled}'
55 default: '{execution-mode}'
56 description: 'Engine execution mode - packaging'
60 description: 'Distribution to use for configuring target nodes (networking etc.)'
64 description: 'Verbosity setting for the engine - true or false - default is false'
67 default: 'https://gerrit.nordix.org/infra/engine.git'
68 description: 'URL to Nordix Cloud Infra engine repository'
70 name: ARTIFACTS_TO_UPLOAD
71 default: "k8s-installer-ubuntu1804.bsx"
72 description: 'Artifacts to upload'
74 name: NORDIX_ARM_PUBLIC_IP
75 default: '91.106.198.25'
76 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
78 name: NORDIX_ARM_HTTPS_URL
79 default: 'https://artifactory.nordix.org/artifactory'
80 description: 'URL to Nordix Artifactory'
83 default: 'nordix-kubernetes'
84 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
86 name: NORDIX_ARTIFACT_URL
87 default: "$NORDIX_ARM_HTTPS_URL/$NORDIX_ARM_REPO/installer/oss/gerrit/$GERRIT_CHANGE_NUMBER"
88 description: 'Artifact to download'
92 description: 'CI loop type'
95 default: 'engine-package-{distro}'
96 description: 'Slave label to schedule this job on.'
98 project: $GERRIT_PROJECT
100 description: 'The project and branch which the change is proposed for'
101 - nordix-gerrit-parameters
106 use-build-blocker: true
108 - 'engine-verify-package-.*'
109 - 'onap-sdc-periodic-release-offline-.*'
110 - 'onap-so-periodic-release-offline-.*'
111 - 'kubernetes-periodic-release-offline-.*'
120 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
121 branch: refs/heads/$GERRIT_BRANCH
122 refspec: $GERRIT_REFSPEC
128 server-name: 'Nordix Gerrit'
130 - patchset-created-event:
131 exclude-drafts: 'false'
132 exclude-trivial-rebase: 'false'
133 exclude-no-code-change: 'false'
134 - draft-published-event
135 - comment-added-contains-event:
136 comment-contains-value: 'recheck'
137 - comment-added-contains-event:
138 comment-contains-value: 'reverify'
140 - project-compare-type: 'REG_EXP'
141 project-pattern: '{gated-projects}'
143 - branch-compare-type: 'ANT'
144 branch-pattern: '**/{branch}'
145 disable-strict-forbidden-file-verification: 'true'
146 forbidden-file-paths:
148 pattern: 'docs/**|releasenotes/**'
150 successful: '{obj:successful}'
151 failed: '{obj:failed}'
152 unstable: '{obj:unstable}'
153 notbuilt: '{obj:notbuilt}'
154 custom-url: '* $JOB_NAME $BUILD_URL'
155 readable-message: 'true'
156 dependency-jobs: '{dependency-jobs}'
163 - credentials-binding:
164 - username-password-separated:
165 credential-id: 'nordix-cicd-arm-credentials'
166 username: NORDIX_ARM_USERNAME
167 password: NORDIX_ARM_TOKEN
174 def build = this.getProperty('binding').getVariable('build')
175 def listener = this.getProperty('binding').getVariable('listener')
176 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
177 println "WARN : Aborting build since dependent job did not succeed!"
178 throw new InterruptedException()
182 sudo chown -R $USER:$USER $WORKSPACE || exit 1
186 - 'generate-sdf-for-change-macro'
187 - 'generate-ssh-keypair-macro'
188 - 'wait-pkg-mgr-macro'
190 - 'upload-artifact-macro'