engine: Move PDF and IDF parameters to deployment jobs
[infra/cicd.git] / jjb / engine / engine-periodic-jobs / engine-periodic-release-jobs.yaml
1 ---
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
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
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.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - project:
21     name: 'engine-release'
22
23     project: 'engine-release'
24
25     environment-type:
26       - offline:
27           disabled: false
28           execution-mode: offline-deployment
29           pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
30           idf: 'file:///opt/engine/offline/git/hwconfig/pods'
31
32     distro:
33       - ubuntu1804
34
35     phase:
36       - package
37       - promote
38
39     cloud:
40       - city:
41           openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
42
43     jobs:
44       - 'kubernetes-periodic-release-{environment-type}-{distro}'
45       - 'kubernetes-periodic-{phase}-{distro}'
46
47 - job-template:
48     name: 'kubernetes-periodic-release-{environment-type}-{distro}'
49
50     project-type: multijob
51
52     disabled: '{obj:disabled}'
53
54     concurrent: false
55
56     parameters:
57       - string:
58           name: EXECUTION_MODE
59           default: '{execution-mode}'
60           description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
61       - string:
62           name: DISTRO
63           default: '{distro}'
64           description: 'Distribution to use for configuring target nodes (networking etc.)'
65       - string:
66           name: INSTALLER_TYPE
67           default: 'kubespray'
68           description: 'Installer type to use'
69       - string:
70           name: DEPLOY_SCENARIO
71           default: 'k8-calico-nofeature'
72           description: 'Scenario to deploy and test'
73       - string:
74           name: PDF
75           default: '{pdf}/${{NODE_NAME}}-pdf.yml'
76           description: 'PDF file to use for deployment'
77       - string:
78           name: IDF
79           default: '{idf}/${{NODE_NAME}}-idf.yml'
80           description: 'IDF file to use for deployment'
81       - string:
82           name: VERBOSITY
83           default: 'true'
84           description: 'Verbosity setting for the engine - true or false - default is false'
85       - string:
86           name: NORDIX_ARM_PUBLIC_IP
87           default: '91.106.198.25'
88           description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
89       - string:
90           name: NORDIX_ARM_HTTPS_URL
91           default: 'https://artifactory.nordix.org/artifactory'
92           description: 'URL to Nordix Artifactory'
93       - string:
94           name: NORDIX_ARM_REPO
95           default: 'nordix-kubernetes'
96           description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
97       - string:
98           name: NORDIX_ARTIFACT_URL
99           default: "$NORDIX_ARM_HTTPS_URL/$NORDIX_ARM_REPO/installer/oss/change/$GERRIT_CHANGE_NUMBER/k8s-installer-ubuntu1804.bsx"
100           description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
101       - label:
102           name: SLAVE_LABEL
103           default: 'engine-build-ubuntu1804'
104           description: 'Slave label to schedule this job on.'
105
106     properties:
107       - logrotate
108
109     wrappers:
110       - build-timeout:
111           timeout: 180
112       - mask-passwords
113       - fix-workspace-permissions
114
115     triggers:
116       - pollscm:
117           cron: "H 0,8,16 * * *"
118
119     scm:
120       - git:
121           url: https://gerrit.nordix.org/infra/engine.git
122           branches:
123             - master
124           timeout: 15
125           wipe-workspace: true
126
127     builders:
128       - 'engine-wait-pkg-mgr-macro'
129       - 'engine-generate-ssh-keypair-macro'
130       - 'engine-generate-job-metadata-macro'
131       - multijob:
132           name: packaging
133           condition: SUCCESSFUL
134           execution-type: PARALLEL
135           projects:
136             - name: 'kubernetes-periodic-package-{distro}'
137               current-parameters: true
138               git-revision: true
139               node-parameters: true
140               property-file: "$WORKSPACE/job.properties"
141               kill-phase-on: FAILURE
142               abort-all-job: true
143       - multijob:
144           name: release test k8-calico-nofeature
145           condition: SUCCESSFUL
146           execution-type: PARALLEL
147           projects:
148             - name: 'k8-calico-nofeature-offline-{distro}-baremetal-periodic'
149               current-parameters: false
150               git-revision: false
151               node-parameters: false
152               property-file: "$WORKSPACE/job.properties"
153               kill-phase-on: FAILURE
154               abort-all-job: true
155       - multijob:
156           name: release test k8-multus-nofeature
157           condition: SUCCESSFUL
158           execution-type: PARALLEL
159           projects:
160             - name: 'k8-multus-nofeature-offline-{distro}-baremetal-periodic'
161               current-parameters: false
162               git-revision: false
163               node-parameters: false
164               property-file: "$WORKSPACE/job.properties"
165               kill-phase-on: FAILURE
166               abort-all-job: true
167       - multijob:
168           name: promotion
169           condition: SUCCESSFUL
170           execution-type: PARALLEL
171           projects:
172             - name: 'kubernetes-periodic-promote-package-{distro}'
173               current-parameters: true
174               git-revision: true
175               node-parameters: true
176               property-file: "$WORKSPACE/job.properties"
177               kill-phase-on: FAILURE
178               abort-all-job: true
179
180 - job-template:
181     name: 'kubernetes-periodic-{phase}-{distro}'
182
183     disabled: '{obj:disabled}'
184
185     concurrent: false
186
187     properties:
188       - logrotate
189
190     wrappers:
191       - build-timeout:
192           timeout: 70
193       - credentials-binding:
194           - username-password-separated:
195               credential-id: 'nordix-cicd-arm-credentials'
196               username: NORDIX_ARM_USERNAME
197               password: NORDIX_ARM_TOKEN
198       - mask-passwords
199       - fix-workspace-permissions
200
201     scm:
202       - git:
203           url: https://gerrit.nordix.org/infra/engine.git
204           branches:
205             - master
206           timeout: 15
207           wipe-workspace: true
208
209     builders:
210       - shell: |
211           #!/bin/bash
212           env
213
214 #      - 'engine-wait-pkg-mgr-macro'
215 #      - 'engine-generate-ssh-keypair-macro'
216 #      - 'engine-packaging-macro'
217 #      - 'engine-upload-artifact-macro'