Merge "changing dcaegen2-collectors to not overlap with dcaegen2-collectors-datafile"
[infra/cicd.git] / jjb / cloud-infra / onap-macros.yaml
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
22 - parameter:
23     name: 'onap-parameter-macro'
24     parameters:
25       - label:
26           name: SLAVE_LABEL
27           default: 'jumphost-onap-ubuntu1804'
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
31           default: 'ubuntu1804'
32           description: 'Distribution to use for configuring target nodes (networking etc.)'
33       - string:
34           name: PROVISIONER_TYPE
35           default: 'heat'
36           description: 'Provisioner to use for provisioning nodes'
37       - string:
38           name: INSTALLER_TYPE
39           default: 'kubespray'
40           description: 'Installer to use for deploying the scenario'
41       - string:
42           name: DEPLOY_SCENARIO
43           default: 'onap-oom-nofeature'
44           description: 'Scenario to deploy and test'
45       - string:
46           name: DEPLOY_TYPE
47           default: 'cloud'
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:
54           name: ONAP_FLAVOR
55           default: 'full'
56           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
57       - string:
58           name: TEST_TYPE
59           default: 'oom-healthcheck'
60           description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
61       - string:
62           name: XTESTING_REPO_URL
63           default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
64           description: 'URL to Nordix xtesting-onap repository'
65       - string:
66           name: ENGINE_ANSIBLE_PARAMS
67           default: ''
68           description: 'Extra parameters that can be added when run the play books.'
69       - string:
70           name: CLEANUP
71           default: 'true'
72           description: 'Cleanup leftovers of the previous run'
73 - builder:
74     name: 'onap-deploy-macro'
75     builders:
76       - shell:
77           !include-raw: ./wait-for-pkg-manager.sh
78       - shell:
79           !include-raw: ./onap-deploy.sh
80
81 - builder:
82     name: 'oom-healthcheck-macro'
83     builders:
84       - shell:
85           !include-raw: ./oom-healthcheck.sh
86
87 - builder:
88     name: 'onap-healthcheck-macro'
89     builders:
90       - shell:
91           !include-raw: ./onap-healthcheck.sh
92
93 - builder:
94     name: 'promote-onap-macro'
95     builders:
96       - shell:
97           !include-raw: ./promote-onap.sh
98
99 - builder:
100     name: 'delete-stack-macro'
101     builders:
102       - shell:
103           !include-raw: ./delete-stack.sh
104
105 # vim: set ts=2 sw=2 expandtab: