Fatih Degirmenci | aadea7b | 2019-07-29 21:19:42 +0200 | [diff] [blame] | 1 | --- |
| 2 | # |
| 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 |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 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. |
| 17 | # |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ============LICENSE_END========================================================= |
| 20 | |
| 21 | # macros used by all job types |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 22 | - parameter: |
| 23 | name: 'onap-parameter-macro' |
| 24 | parameters: |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 25 | - label: |
| 26 | name: SLAVE_LABEL |
Fatih Degirmenci | aca27a6 | 2019-07-30 21:10:32 +0200 | [diff] [blame] | 27 | default: 'jumphost-onap-ubuntu1804' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 28 | description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use' |
| 29 | - string: |
| 30 | name: DISTRO |
Fatih Degirmenci | aca27a6 | 2019-07-30 21:10:32 +0200 | [diff] [blame] | 31 | default: 'ubuntu1804' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 32 | description: 'Distribution to use for configuring target nodes (networking etc.)' |
| 33 | - string: |
| 34 | name: PROVISIONER_TYPE |
Fatih Degirmenci | aca27a6 | 2019-07-30 21:10:32 +0200 | [diff] [blame] | 35 | default: 'heat' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 36 | description: 'Provisioner to use for provisioning nodes' |
| 37 | - string: |
| 38 | name: INSTALLER_TYPE |
Fatih Degirmenci | aca27a6 | 2019-07-30 21:10:32 +0200 | [diff] [blame] | 39 | default: 'kubespray' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 40 | description: 'Installer to use for deploying the scenario' |
| 41 | - string: |
| 42 | name: DEPLOY_SCENARIO |
Fatih Degirmenci | 3473f6f | 2019-08-22 17:37:34 +0000 | [diff] [blame] | 43 | default: 'onap-nofeature-noha' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 44 | description: 'Scenario to deploy and test' |
| 45 | - string: |
| 46 | name: DEPLOY_TYPE |
Fatih Degirmenci | aca27a6 | 2019-07-30 21:10:32 +0200 | [diff] [blame] | 47 | default: 'cloud' |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 48 | description: 'Type of the deployment' |
| 49 | - string: |
| 50 | name: HEAT_ENVIRONMENT_FILE |
| 51 | default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml" |
| 52 | description: 'Type of the deployment' |
| 53 | - string: |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 54 | name: TEST_TYPE |
| 55 | default: 'oom-healthcheck' |
| 56 | description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck' |
| 57 | - string: |
Fatih Degirmenci | d6f228b | 2019-07-30 20:53:46 +0200 | [diff] [blame] | 58 | name: XTESTING_REPO_URL |
| 59 | default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git' |
| 60 | description: 'URL to Nordix xtesting-onap repository' |
| 61 | - string: |
| 62 | name: ENGINE_ANSIBLE_PARAMS |
| 63 | default: '' |
| 64 | description: 'Extra parameters that can be added when run the play books.' |
| 65 | - string: |
| 66 | name: CLEANUP |
| 67 | default: 'true' |
| 68 | description: 'Cleanup leftovers of the previous run' |
Fatih Degirmenci | aadea7b | 2019-07-29 21:19:42 +0200 | [diff] [blame] | 69 | - builder: |
| 70 | name: 'onap-deploy-macro' |
| 71 | builders: |
| 72 | - shell: |
| 73 | !include-raw: ./wait-for-pkg-manager.sh |
| 74 | - shell: |
| 75 | !include-raw: ./onap-deploy.sh |
| 76 | |
| 77 | - builder: |
| 78 | name: 'oom-healthcheck-macro' |
| 79 | builders: |
| 80 | - shell: |
Fatih Degirmenci | aadea7b | 2019-07-29 21:19:42 +0200 | [diff] [blame] | 81 | !include-raw: ./oom-healthcheck.sh |
| 82 | |
| 83 | - builder: |
| 84 | name: 'onap-healthcheck-macro' |
| 85 | builders: |
| 86 | - shell: |
Fatih Degirmenci | aadea7b | 2019-07-29 21:19:42 +0200 | [diff] [blame] | 87 | !include-raw: ./onap-healthcheck.sh |
| 88 | |
| 89 | - builder: |
| 90 | name: 'promote-onap-macro' |
| 91 | builders: |
| 92 | - shell: |
| 93 | !include-raw: ./promote-onap.sh |
| 94 | |
Fatih Degirmenci | aadea7b | 2019-07-29 21:19:42 +0200 | [diff] [blame] | 95 | # vim: set ts=2 sw=2 expandtab: |