3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
21 #--------------------------------------------------------------------------------------
22 # The jobs declared in this JJB configuration file are used for deploying and testing
23 # Spinnaker using k8-calico-spinnaker scenario.
24 #--------------------------------------------------------------------------------------
27 name: 'cloud-infra-periodic-spinnaker'
29 project: 'infra/engine'
33 slave-label: 'city-jumphost-ubuntu1804'
34 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-onap'
35 daily-trigger: '@midnight'
40 engine-version: master
41 engine-refspec: master
42 deploy-scenario: 'k8-calico-spinnaker'
43 deploy-scenario-version: master
44 deploy-scenario-refspec: master
57 provisioner-type: heat
58 installer-type: kubespray
69 - 'k8-calico-spinnaker-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{spinnaker-branch}'
70 - '{phase}-{distro}-{installer-type}-{type}-{ci-loop}-{spinnaker-branch}'
73 name: 'k8-calico-spinnaker-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{spinnaker-branch}'
75 project-type: multijob
77 disabled: '{obj:disabled}'
84 branch: '{nordix-branch}'
85 - nordix-gerrit-parameters
88 default: '{slave-label}'
89 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
91 name: PROVISIONER_TYPE
93 description: 'Provisioner to use for provisioning nodes'
97 description: 'Installer to use for deploying the scenario'
100 default: 'k8-calico-spinnaker'
101 description: 'Scenario to deploy and test'
105 description: 'Type of the deployment'
109 description: 'Distribution to use for configuring target nodes (networking etc.)'
111 name: OPENSTACK_CLOUD_PROVIDER
113 description: 'Name of the cloud where this job is run'
115 name: SPINNAKER_VERSION
116 default: '{spinnaker-branch}'
117 description: 'Spinnaker version to deploy'
120 default: 'nordix-cicd-{deploy-scenario}-{spinnaker-branch}'
122 name: HEAT_ENVIRONMENT_FILENAME
123 default: "heat-environment-full.yaml"
124 description: 'Heat environment file to use for creating the stack'
127 default: '{engine-version}'
128 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying Spinnaker. Could be sha, branch'
131 default: '{engine-refspec}'
132 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying Spinnaker. Must be refspec.'
134 name: DEPLOY_SCENARIO_VERSION
135 default: '{deploy-scenario-version}'
136 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying Spinnaker. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
138 name: DEPLOY_SCENARIO_REFSPEC
139 default: '{deploy-scenario-refspec}'
140 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying Spinnaker. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
143 default: '{pod-name}'
144 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
147 default: '{delete-stack}'
148 description: 'Development purposes only! Whether delete the stack or not. It must either be yes or no. Setting this to no will increase the cost!'
153 use-build-blocker: true
155 - 'cloud-infra-periodic-engine-.*'
165 - credentials-binding:
167 credential-id: '{openrc-credentials-file}'
168 variable: OPENRC_FILE
172 - fix-workspace-permissions
177 - timed: '{daily-trigger}'
181 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
182 branch: '{nordix-branch}'
188 - description-setter:
189 description: $DEPLOY_SCENARIO | Spinnaker $SPINNAKER_VERSION
192 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
194 name: Deploy Spinnaker using Helm
197 - name: 'spinnaker-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{spinnaker-branch}'
198 current-parameters: false
199 predefined-parameters: |
201 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
202 DEPLOY_TYPE=$DEPLOY_TYPE
203 PROVISIONER_TYPE=$PROVISIONER_TYPE
204 INSTALLER_TYPE=$INSTALLER_TYPE
205 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
206 SPINNAKER_VERSION=$SPINNAKER_VERSION
208 STACK_NAME=$STACK_NAME
209 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
210 ENGINE_VERSION=$ENGINE_VERSION
211 ENGINE_REFSPEC=$ENGINE_REFSPEC
212 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
213 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
215 node-parameters: true
219 name: Test Spinnaker Deployment (not activated)
222 - name: 'spinnaker-test-{distro}-{installer-type}-{type}-{ci-loop}-{spinnaker-branch}'
223 current-parameters: false
224 predefined-parameters: |
226 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
227 DEPLOY_TYPE=$DEPLOY_TYPE
228 PROVISIONER_TYPE=$PROVISIONER_TYPE
229 INSTALLER_TYPE=$INSTALLER_TYPE
230 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
231 SPINNAKER_VERSION=$SPINNAKER_VERSION
233 STACK_NAME=$STACK_NAME
234 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
235 ENGINE_VERSION=$ENGINE_VERSION
236 ENGINE_REFSPEC=$ENGINE_REFSPEC
237 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
238 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
240 node-parameters: true
244 name: Promote Spinnaker (not activated)
247 - name: 'promote-spinnaker-{distro}-{installer-type}-{type}-{ci-loop}-{spinnaker-branch}'
248 current-parameters: false
249 predefined-parameters: |
251 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
252 DEPLOY_TYPE=$DEPLOY_TYPE
253 PROVISIONER_TYPE=$PROVISIONER_TYPE
254 INSTALLER_TYPE=$INSTALLER_TYPE
255 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
256 SPINNAKER_VERSION=$SPINNAKER_VERSION
258 STACK_NAME=$STACK_NAME
259 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
260 ENGINE_VERSION=$ENGINE_VERSION
261 ENGINE_REFSPEC=$ENGINE_REFSPEC
262 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
263 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
265 node-parameters: true
281 !include-raw-escape: ./wait-for-pkg-manager.sh
283 !include-raw: ./delete-heat-stack.sh
286 name: '{phase}-{distro}-{installer-type}-{type}-{ci-loop}-{spinnaker-branch}'
296 - project-parameters:
298 branch: '{nordix-branch}'
299 - nordix-gerrit-parameters
302 default: 'city-jumphost-ubuntu1804'
303 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
305 name: PROVISIONER_TYPE
307 description: 'Provisioner to use for provisioning nodes'
311 description: 'Installer to use for deploying the scenario'
313 name: DEPLOY_SCENARIO
314 default: 'k8-calico-spinnaker'
315 description: 'Scenario to deploy and test'
319 description: 'Type of the deployment'
323 description: 'Distribution to use for configuring target nodes (networking etc.)'
325 name: OPENSTACK_CLOUD_PROVIDER
327 description: 'Name of the cloud where this job is run'
329 name: SPINNAKER_VERSION
330 default: '{spinnaker-branch}'
331 description: 'Spinnaker version to deploy'
334 default: 'nordix-cicd-{deploy-scenario}-{spinnaker-branch}'
336 name: HEAT_ENVIRONMENT_FILENAME
337 default: "heat-environment-full.yaml"
338 description: 'Heat environment file to use for creating the stack'
341 default: '{engine-version}'
342 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying Spinnaker. Could be sha, branch'
345 default: '{engine-refspec}'
346 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying Spinnaker. Must be refspec.'
348 name: DEPLOY_SCENARIO_VERSION
349 default: '{deploy-scenario-version}'
350 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying Spinnaker. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
352 name: DEPLOY_SCENARIO_REFSPEC
353 default: '{deploy-scenario-refspec}'
354 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying Spinnaker. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
357 default: '{pod-name}'
358 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
361 default: '{delete-stack}'
362 description: 'Development purposes only! Whether delete the stack or not. It must either be yes or no. Setting this to no will increase the cost!'
367 timeout: '{build-timeout}'
368 - fix-workspace-permissions
369 - credentials-binding:
370 - username-password-separated:
371 credential-id: 'nordix-cicd-arm-credentials'
372 username: NORDIX_ARM_USERNAME
373 password: NORDIX_ARM_TOKEN
374 - username-password-separated:
375 credential-id: 'nordix-cicd-harbor-credentials'
376 username: NORDIX_HARBOR_USERNAME
377 password: NORDIX_HARBOR_PASSWORD
381 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
382 branch: '{nordix-branch}'
388 - description-setter:
389 description: $DEPLOY_SCENARIO | Spinnaker $SPINNAKER_VERSION | $OPENSTACK_CLOUD_PROVIDER
392 # vim: set ts=2 sw=2 expandtab: