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-onap'
29 execution-mode: 'packaging'
30 gated-projects: 'infra\/engine'
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'
66 name: ARTIFACTS_TO_UPLOAD
67 default: "k8s-installer-ubuntu1804.bsx"
68 description: 'Artifacts to upload'
70 name: NORDIX_ARM_PUBLIC_IP
71 default: '91.106.198.25'
72 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
74 name: NORDIX_ARM_HTTPS_URL
75 default: 'https://artifactory.nordix.org/artifactory'
76 description: 'URL to Nordix Artifactory'
79 default: 'nordix-kubernetes'
80 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
82 name: NORDIX_ARTIFACT_URL
83 default: "$NORDIX_ARM_HTTPS_URL/$NORDIX_ARM_REPO/installer/oss/gerrit/$GERRIT_CHANGE_NUMBER"
84 description: 'Artifact to download'
88 description: 'CI loop type'
91 default: 'engine-package-{distro}'
92 description: 'Slave label to schedule this job on.'
94 project: $GERRIT_PROJECT
96 description: 'The project and branch which the change is proposed for'
97 - 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-.*'
116 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
118 refspec: $GERRIT_REFSPEC
124 server-name: 'Nordix Gerrit'
126 - patchset-created-event:
127 exclude-drafts: 'false'
128 exclude-trivial-rebase: 'false'
129 exclude-no-code-change: 'false'
130 - draft-published-event
131 - comment-added-contains-event:
132 comment-contains-value: 'recheck'
133 - comment-added-contains-event:
134 comment-contains-value: 'reverify'
136 - project-compare-type: 'REG_EXP'
137 project-pattern: '{gated-projects}'
139 - branch-compare-type: 'ANT'
140 branch-pattern: '**/{branch}'
141 disable-strict-forbidden-file-verification: 'true'
142 forbidden-file-paths:
144 pattern: 'docs/**|releasenotes/**'
146 successful: '{obj:successful}'
147 failed: '{obj:failed}'
148 unstable: '{obj:unstable}'
149 notbuilt: '{obj:notbuilt}'
150 custom-url: '* $JOB_NAME $BUILD_URL'
151 readable-message: 'true'
152 dependency-jobs: '{dependency-jobs}'
159 - credentials-binding:
160 - username-password-separated:
161 credential-id: 'nordix-cicd-arm-credentials'
162 username: NORDIX_ARM_USERNAME
163 password: NORDIX_ARM_TOKEN
170 def build = this.getProperty('binding').getVariable('build')
171 def listener = this.getProperty('binding').getVariable('listener')
172 if (build.getEnvironment(listener).{dependency-job-var} != "SUCCESS") {{
173 println "WARN : Aborting build since dependent job did not succeed!"
174 throw new InterruptedException()
178 sudo chown -R $USER:$USER $WORKSPACE || exit 1
182 - 'generate-ssh-keypair-macro'
183 - 'wait-pkg-mgr-macro'
185 - 'upload-artifact-macro'